10 Mar
2009
10 Mar
'09
8:27 p.m.
At 10:13 PM 3/10/2009 +0100, Arne Babenhauserheide wrote:
Hi,
Is it possible to include data in a source distribution?
You need to specify the data files in your MANIFEST.in file -- the distutils don't do that automatically for you. Of course, if you use setuptools to create your sdist, and the data files are in revision control, they'll be included automatically. Note, too, that you don't have to use setuptools in your setup.py to do this; you only need to import setuptools to generate your sdist, e.g.: python -c "import setuptools; execfile('setup.py')" sdist register upload That command line will generate and upload an sdist using setuptools, but persons installing the package won't get a setuptools-based installation.