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
$ find .
./hello
./hello/__init__.py
./share
./share/test_file.txt
./setup.py
$ cat ./hello/__init__.py
def hello():
print( 'hello' )
$ cat ./share/test_file.txt
this is a test
$ cat ./hello/setup.py
from setuptools import setup, find_packages
setup(
name = Hello,
version = 0.1,
packages = find_packages(),
data_files = [
( 'share', ['share/test_file.txt'] )
]
)
$ python setup.py sdist
$ tar tvf dist/Hello-0.1.tar.gz | grep test_file.txt
$ echo no test_file.txt :-(
--
https://mail.python.org/mailman/listinfo/python-list