[Distutils] Multiple Eggs in one setup file

Dennis Kempin mail at dennis-kempin.de
Fri Mar 28 00:05:57 CET 2008


Hi folks,

i really like the setuptools project, it makes my life much easier, but 
recently i stumbled over the following problem:

My Project constist of 2 main egg distributions and a bunch of "plugin" eggs.

The first Problem ist: These projects are in the same source tree. like this:
src/project/master
src/project/plugins (namespace package)
src/project/plugins/pa
src/project/plugins/pb
src/project/plugins/pc

Well not a problem for setuptools since you can specify which packages to 
include into a distribution. 
But the problem is: when i call setup() multiple times in one setup.py file 
everything gets completly messed up. All egg files contain the whole project 
source.

My second solution was to create multiple setup.py files (setup-master.py, 
setup-pa.py, and so on) and call them via system(). But this resulted in some 
conflicts in the build directory. 

So well.. is it possible (and especially how is it possible) to create 
multiple egg files within one python instance (one setup.py file that is 
executed)?

And another question:
When i have all the plugin egg files packaged. I want to create a new egg file 
(project-dist) to distribute the master and all of its plugins (which are 
simply copied to a /etc/ folder).
Thus a single egg file that installs the master and copies some egg files to a 
specified folder.

thanks in advance and best regards,
Dennis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.python.org/pipermail/distutils-sig/attachments/20080327/097575f0/attachment.pgp 


More information about the Distutils-SIG mailing list