[Python-Dev] [Distutils] how to easily consume just the parts of eggs that are good for you

Steven Bethard steven.bethard at gmail.com
Thu Apr 10 08:11:22 CEST 2008


On Wed, Apr 9, 2008 at 4:48 PM, Paul Moore <p.f.moore at gmail.com> wrote:
> On 09/04/2008, Phillip J. Eby <pje at telecommunity.com> wrote:
>  > It would be, if .eggs were a packaging format, rather than a binary
>  >  distribution/runtime format.
>  >
>  >  Remember "eggs are to Python as jars are to Java" -- a Java .jar
>  >  doesn't contain documentation either, unless it's needed at
>  >  runtime.  Same for configuration files.
>
>  And yet, Java doesn't have an equivalent of easy_install for jar
>  files, to my knowledge. If Python had eggs but no easy_install, maybe
>  this whole discussion wouldn't be taking place.
>
>  (I know I personally like the idea of egg-as-jar-file, but *hate* the
>  idea of egg-as-dependency-handling-tool-and-everything-else).

So then do you really need anything more than the 2.6 support for
executing directories (and zipfiles) with a __main__ file?

    $ python_d.exe --version
    Python 2.6a1+

    $ more foo\__main__.py
    print 'here I am!'

    $ python_d.exe foo
    here I am!
    [8698 refs]

    $ python_d.exe foo.zip
    here I am!
    [8563 refs]

STeVe
-- 
I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
tiny blip on the distant coast of sanity.
 --- Bucky Katt, Get Fuzzy


More information about the Python-Dev mailing list