[Distutils] setup.py#package_data - howto include entire folder when installing
Aljoša Mohorović
aljosa.mohorovic at gmail.com
Fri Feb 12 04:16:38 CET 2010
2010/2/11 Tarek Ziadé <ziade.tarek at gmail.com>:
> How is your project organized precisely ?
> Depending on the layout you might need to use the "package_dir" option,
ROOT
| - > mypkg/
| - > data/
| - > MANIFEST.in
| - > setup.py
$ cat MANIFEST.in
recursive-include data *.css *.js *.jpg *.gif *.png *.html
$ cat setup.py
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='test-pkg',
packages = find_packages(),
include_package_data = True,
package_data = {
'': ['data'],
},
)
More information about the Distutils-SIG
mailing list