setuptools + data_files = 2

Simon Kennedy sffjunkie at
Thu Oct 23 15:36:37 CEST 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 file in the same folder as 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