[Distutils] Packaging of files, which aren't in the package root folder
Tarek Ziadé
ziade.tarek at gmail.com
Sun Dec 13 15:27:29 CET 2009
On Sun, Dec 13, 2009 at 3:08 PM, Lukas Hetzenecker <LuHe at gmx.at> wrote:
> Hello,
>
> i have the following folder structure:
Hi Lukas, your project layout is a bit exotic but looks fine for what
you want to do.
You just need to add an extra file called MANIFEST.in alongside
setup.py, with this content:
recursive-include application *.py
include application/INSTALL
include application/Changelog
include application/LICENCE
This is a template file, that'll make sure package_data files are
included in the archive then installed.
Notice that this has changed in version 2.7: All the files that match
package_data will be added to the MANIFEST file if no template is
provided.
IOW this MANIFEST.in won't be necessary anymore in your case in the future
see http://docs.python.org/dev/distutils/sourcedist.html#manifest
Tarek
More information about the Distutils-SIG
mailing list