Re: setuptools + data_files = 2

2014-10-24 Thread luc2
On 2014-10-23, Simon Kennedy sffjun...@gmail.com wrote:

 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]},

thanks man.
-- 
https://mail.python.org/mailman/listinfo/python-list


setuptools + data_files = 2

2014-10-22 Thread luc2
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