[Distutils] packages and modules together
Bernhard Herzog
bh@intevation.de
Fri Feb 28 05:47:27 2003
"M.-A. Lemburg" <mal@lemburg.com> writes:
> Fred L. Drake, Jr. wrote:
> > Here's a topic that's come up before.
> > Distutils does not currently support having both packages and modules
> > in the same call to distutils.core.setup().
[...]
> I believe that a simple change to the .find_all_modules()
> method would solve the problem: the method would need to merge
> the two generated lists (from py_modules and the modules from
> the packages).
I ran across this general distutils problem as well when writing the
setup.py for Thuban [1] and I derived a new build command just so that I
could have both modules and packages. Overriding find_all_modules and
run was necessary. find_all_modules as MAL described and run so that it
will allow specifying both modules and packages. This has been working
very well in Thuban.
Bernhard
[1] (http://thuban.intevation.org/)
--
Intevation GmbH http://intevation.de/
Sketch http://sketch.sourceforge.net/
MapIt! http://www.mapit.de/