[Distutils] trouble making egg...

Phillip J. Eby pje at telecommunity.com
Mon Aug 13 18:17:10 CEST 2007

At 10:46 AM 8/13/2007 +0100, Chris Withers wrote:
>Phillip J. Eby wrote:
>>>Given the component.xml in there, I'm pretty sure I need to add a
>>>zip_safe=True, but what else do I need to do to get setup.py to
>>>correctly build an egg and a source distro?
>>Short answer: move the package and any data files that should be 
>>included to a mailinglogger/ subdirectory.
>What ends up in the root folder then? just the setup.py?

and anything else you want in the source distro, like the docs and 
examples.  I also usually throw my tests there, and don't distribute 
them with the egg, but preferences vary.

>>Alternative answer: use package_dir={'mailinglogger':'.'} and 
>>manually list the packages (since find_packages() doesn't support 
>I actually tried this before I mailed here, it didn't work but I 
>can't remember the exact reason. I think it may have been that it 
>included the files as modules, but they weren't in a 'mailinglogger' 
>package anymore...

I suspect that you changed package_dir but not packages.  You have to 
explicitly list the packages for that to work.

More information about the Distutils-SIG mailing list