Introduction
A Python egg is a way of distributing Python packages.
Python eggs are a way of bundling additional information with a Python project, that allows the project's dependencies to be checked and satisfied at runtime, as well as allowing projects to provide plugins for other projects.
To install them you need |easy_install
Location of Python Eggs
A popular website is [http://pypi.python.org/pypi|PyPI]
Install an Egg
There are two ways.
- Downloading the egg and calling: easy_install package.egg
- Using the URL directly: easy_install http://somehost.somedomain.com/somepackage.egg
Eggs can define dependencies on other packages which easy_install will then try to automatically download and install aswell.
Creating Python Eggs
A package includes the file setup.py that has metadata about the package.
To create an egg distribution you can call
python setup.py bdist_egg.
This will create an egg distribution file which you can find in dist/eventlet-0.1-py2.4.egg.