collective.recipe.omelette (0.12)
- collective.recipe.omelette download link: http://plone.org/products/collective.recipe.omelette/releases
- Homepage of collective.recipe.omelette: http://plone.org/products/collective.recipe.omelette
- Description source: http://pypi.python.org/pypi/collective.recipe.omelette
Namespace packages offer the huge benefit of being able to distribute parts of a large system in small, self-contained pieces. However, they can be somewhat clunky to navigate, since you end up with a large list of eggs in your egg cache, and then a seemingly endless series of directories you need to open to actually find the contents of your egg.
This recipe sets up a directory structure that mirrors the actual python namespaces, with symlinks to the egg contents. So, instead of this...:
egg-cache/
my.egg.one-1.0-py2.4.egg/
my/
egg/
one/
(contents of first egg)
my.egg.two-1.0-py2.4.egg/
my/
egg/
two/
(contents of second egg)
...you get this:
omelette/
my/
egg/
one/
(contents of first egg)
two/
(contents of second egg)
You can also include non-eggified python packages in the omelette. This makes it simple to get a single path that you can add to your PYTHONPATH for use with specialized python environments like when running under mod_wsgi or PyDev.