[Distutils] setup.py#package_data - howto include entire folder when installing
Aljoša Mohorović
aljosa.mohorovic at gmail.com
Wed Feb 10 22:15:16 CET 2010
i've created MANIFEST.in and setup.py and when i call "python setup.py
sdist" archive is created normally and archive contains all files.
when i call "python setup.py install" data files are not installed and
i have no idea why.
i've been searching for a solution but every combination i've tried failed.
i usually have only html templates so something like:
package_data = {'mypkg': ['templates/*.html',]}
works as expected but now i have a folder with different types of
files and nested folder structure.
my question is:
- how can i define in setup.py to include folder (let's call it
"data") and everything in data so that when "python setup.py install"
is called that folder is copied with python code?
something like "package_data={'mypkg': ['data/*']},"?
Aljosa Mohorovic
More information about the Distutils-SIG
mailing list