tags:

views:

1536

answers:

4

Doing a quick search of SO, I didn't find anything, but feel free to just redirect me. Basically, I'm new to Python and just trying to understand how it's packages work. Presumably "eggs" are some sort of packaging mechanism, but if someone could give me a quick overview of what role they play and maybe some information on why they're useful and how to create them.

+15  A: 

same concept as a .jar file in Java, it is a .zip file with some metadata files renamed .egg, for distributing code as bundles.

fuzzy lollipop
A: 

Analogous to Debian .deb archives: code bundle with meta-data to help with the management of the archive e.g. installation, script extraction etc.

jldupont
+4  A: 

Google hit #3: http://www.ibm.com/developerworks/library/l-cppeak3.html

Google hit #5: http://stackoverflow.com/questions/2026395/how-to-create-python-egg-file

S.Lott
I suppose this is what I get for using Bing. Search "what is a python egg" and neither of those are on the first page.
Bialecki
Thanks, this is what I was looking for: http://www.ibm.com/developerworks/library/l-cppeak3.html#N10232.
Bialecki
It helps to avoid "noise" words like "what", "is", and "a".
S.Lott
what's bing ?..
Stefano Borini
Bing == Because It's Not Google. Microsoft's new search engine. Different page-ranking. Less clutter.
S.Lott
@S.Lott: ...more junk :)
George Edison
@S.Lott Less Capable as well apparently
fuzzy lollipop
+1  A: 

As someone who loathes .egg files, I use this to install Python packages that use setuptools:

python setup.py install --single-version-externally-managed --root=/

this will install the package in non-egg form.

If a package just uses distutils, then:

python setup.py install

will suffice.

jps