setuptools + data_files = 2

Simon Kennedy sffjunkie at gmail.com
Thu Oct 23 09:36:37 EDT 2014


On Wednesday, 22 October 2014 19:43:25 UTC+1, luc2  wrote:
> hello, would you know how to make data_files work in setuptools ?
> i can't figure out how to put datas in the generated .tar.gz

If you're creating an sdist then you'll need to create a MANIFEST.in file in the same folder as setup.py with the following contents

    include share/test_file.txt

If you're creating a bdist (egg or wheel) the parameter name you need is

    package_data={'share': [share/test_file.txt]},



More information about the Python-list mailing list