On Thu, Oct 8, 2009 at 3:35 AM, Mike Orr <[email protected]> wrote:
>
> An egg is a Python package accompanied by its metadata. An egg can
> contain more than one package, but always one metadata. There are two
> file formats for eggs:
>
...
Thanks for all of that. It helps. A lot. I'll look at the link to Ian's talk
(this year was my first PyCon, so didn't see that in 06)
I did notice something:
this format is arguably simpler. If you tell pip to zip a package, it
> produces the zip format above (I think). If you tell pip to unzip a
> package, it reconstructs this multi-directory format.
>
When trying "pip zip {foo}": it doesn't make the same zip (as an egg)
package:
Assume you have a virtualenv somewhere (mine is ~/boopah):
*$ ./bin/easy_install pip*
Searching for pip
Reading http://pypi.python.org/simple/pip/
Reading http://pip.openplans.org
Best match: pip 0.5
Downloading
http://pypi.python.org/packages/source/p/pip/pip-0.5.tar.gz#md5=63eed8673e40628534cc0aa9c98e8f3d
Processing pip-0.5.tar.gz
Running pip-0.5/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-SE9kq2/pip-0.5/egg-dist-tmp-1qBPg7
warning: no previously-included files matching '*.txt' found under directory
'docs/_build'
no previously-included directories found matching 'docs/_build/_sources'
zip_safe flag not set; analyzing archive contents...
pip: module references __file__
Adding pip 0.5 to easy-install.pth file
Installing pip script to /home/mjf/boopah/bin
Installed /home/mjf/boopah/lib/python2.6/site-packages/pip-0.5-py2.6.egg
Processing dependencies for pip
Finished processing dependencies for pip
*$ ./bin/pip install webhelpers*
Downloading/unpacking webhelpers
Downloading WebHelpers-0.6.4.tar.gz (199Kb): 199Kb downloaded
Running setup.py egg_info for package webhelpers
Installing collected packages: webhelpers
Running setup.py install for webhelpers
Successfully installed webhelpers
*$ ./bin/pip install webob**
*Downloading/unpacking webob
Downloading WebOb-0.9.6.1.tar.gz (103Kb): 103Kb downloaded
Running setup.py egg_info for package webob
Installing collected packages: webob
Running setup.py install for webob
Successfully installed webob
*$ ls lib/python2.6/site-packages/*
easy-install.pth webhelpers
pip-0.5-py2.6.egg WebHelpers-0.6.4-py2.6.egg-info
setuptools-0.6c9-py2.6.egg webob
setuptools.pth WebOb-0.9.6.1-py2.6.egg-info
***$ ./bin/pip zip -l*
In ./lib/python2.6/site-packages:
Zipped packages:
setuptools-0.6c9-py2.6.egg
Unzipped packages:
pip-0.5-py2.6.egg (7 files)
webhelpers (52 files)
webob (17 files)
*$ ./bin/pip zip webhelpers*
Zip webhelpers (in ./lib/python2.6/site-packages/webhelpers)
*$ ./bin/pip zip -l*
In ./lib/python2.6/site-packages:
Zipped packages:
setuptools-0.6c9-py2.6.egg
webhelpers.zip
Unzipped packages:
pip-0.5-py2.6.egg (7 files)
webob (17 files)
*$ ls lib/python2.6/site-packages/*
easy-install.pth webhelpers.zip
pip-0.5-py2.6.egg webhelpers.zip.pth
setuptools-0.6c9-py2.6.egg webob
setuptools.pth WebOb-0.9.6.1-py2.6.egg-info
WebHelpers-0.6.4-py2.6.egg-info
Anyway, that's probably The Right way to do it, but thought you might be
interested. FYI.
Can GAE eat eggs?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---