Re: Wheel-reinvention with Python



Cliff Wells <cliff@xxxxxxxxxxx> writes:
> On Wed, 2005-08-03 at 09:47 -0400, Mike Meyer wrote:
>> Cliff Wells <cliff@xxxxxxxxxxx> writes:
>> > On Tue, 2005-08-02 at 20:17 -0400, Mike Meyer wrote:
>> >> Um - you're not answering the question I asked. I asked "What app do I
>> >> use to bundle my applications for Unix, ala py2exe (or whatever it is)
>> >> for Windows?" You're telling me how to install wxPython on those
>> >> platforms.
>> >> I know how to install wxPython. What I want to know is how to build an
>> >> application bundle for all those Unix systems for a Python app I use
>> >> that includes wxPython - or any other third party libraries I may be
>> >> using.
>> >
>> > Sorry, I assumed you'd know about distutils:
>>
>> Cliff, please quit being an ass. You keep assuming that because some
>> tool isn't the answer to my question that I don't know about
>> it. That's simply rude. It would be *much* more polite to ask "What's
>> wrong with distutils" rather than saying "So you don't know about
>> distutils."
>
> Since you said "please". I'll try to forget about "the wonders of X"
> comment you made that I found just as rude.

I made one comment that you found rude - which wasn't intended to be -
and you feel that's justification for intentionally insulting me in
pretty much every reply?

>> > http://www.python.org/doc/current/dist/
>> > http://www.python.org/doc/current/dist/built-dist.html
>> >
>> > distutils can go so far as to build an rpm for you, but you'll need to
>> > package things like .debs yourself.
>>
>> I've very familiar with distutils. It doesn't do what I asked for, in
>> that it only bundles up *my* code. It doesn't bundle the things I
>> depend on the way py2exe does. It's patently *not* the answer to the
>> question I asked.
>
> It can. It isn't terrifically easy, but distutils can be used to
> package up 3rd party libraries, including binary libs. It can, in fact,
> package up any file you so desire.

So can tar. That doesn't make it a solution to the problem, either.

>> I'm surprised you haven't mentioned eggs yet. Those work across all
>> the platforms I named. Of course, they aren't the answer to my
>> question either, because, like PRMs et al, they only reference
>> external dependencies, they don't include them.
>
> While this describes the general use case of RPM, you can most certainly
> include external dependencies. You do it by not making them external.
> If you need wxPython included with your app, you can build wxPython as a
> subtree of your project and package it that way. While wasteful of
> space, it is also the only sure way to make sure that your app has the
> correct version and all needed dependencies. This is how py2exe does it
> on Windows and py2app does it on Mac (they just make it automatic).

Right. Let's go back to the original question: What's the app I use on
Unix that acts like py2exe on Windows and py2app on Unix?

Any archiving system can be coerced into collecting all the parts
together. None of them do it automatically. That automatically makes
them *not* an answer to the question.

<mike
--
Mike Meyer <mwm@xxxxxxxxx> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
.



Relevant Pages

  • Re: Linked packages in advertisement?
    ... To set a dependency chain: Create two programs program a and program b. ... You don't have to update the package to change program dependency. ... > If I later have to distribute a third App wich also depends on Oracle, ... You don't have to re-package Oracle client. ...
    (microsoft.public.sms.swdist)
  • Re: Distributed Access references
    ... understand from trying to package an app and working w/ ... Although it appears that the excel does get packaged by ... So my app relies on the user having their own ... As for the other references I am not sure what to do? ...
    (microsoft.public.access.devtoolkits)
  • Re: Wheel-reinvention with Python
    ... > wrong with distutils" rather than saying "So you don't know about ... It doesn't bundle the things I ... package up 3rd party libraries, ... > fetch the dependencies and install them. ...
    (comp.lang.python)
  • Re: Visual Basic executable file
    ... simply use the the Package & Deployment wizard to create a setup ... Have the user run the install package that is on the CD. ... properly install your app on their PC. ... Create an INI file with the database path and have your app ...
    (microsoft.public.vb.general.discussion)
  • Re: How to write application that expires after some days
    ... If it is to cover a commercial app, then you need to put a lot more thought ... 1.use the java security manager to protect this routine. ... this package. ...
    (comp.lang.java.programmer)