[Distutils] Help to create a setup.py (subdirectories aren't working)

Hugo Doria hugodoria at gmail.com
Thu Mar 25 12:15:32 CET 2010


On Wed, Mar 24, 2010 at 11:37 PM, P.J. Eby <pje at telecommunity.com> wrote:
> You're using a package_dir with more than one entry in it, which is a sign
> that your project's layout is broken.  If you wanted a layout like the one
> you describe here, you need to:

What would be the best layout for this? How should i reorganize my project?

>
> 1. Omit the package_dir option altogether
> 2. set packages = ['MyProject', 'MyProject.output', 'MyProject.modules']
> 3. Add an __init__.py in the MyProject directory, to make it the parent
> package
>

I will try this.

-- Hugo


More information about the Distutils-SIG mailing list