You are here: Home Plone products collective.recipe.omelette

collective.recipe.omelette (0.12)

1
by Olha Pelishok last modified 2011-09-09
0.0
0.0
0.0
0.0
Released on 2011-09-08 by David Glick for Plone 2.0, Plone 2.1, Plone 2.5, Plone 3.0, Plone 4.0 under GPL - GNU General Public License available for All platforms.
Software development stage: stable
Creates a unified directory structure of all namespace packages, symlinking to the actual contents, in order to ease navigation.

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.

 
Document Actions
Powered by Plone