[setuptools] svn'ed file being missed with include_package_data=True

Hi All, I have a setup.py that looks roughly like: import os from setuptools import setup, find_packages ... setup( ... packages=find_packages(), zip_safe=False, include_package_data=True, ... ) ...and a file layout roughly like: /bootstrap.py /buildout.cfg /setup.py /mypackage/... When I do setup.py sdist, the resulting .zip [1] file contains bootstrap.py and setup.py but not buildout.cfg, even though it is in svn. What's going wrong here? cheers, Chris [1] Anyone know how to get .tgz source builds on windows rather than .zips? -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk

Chris Withers wrote:
Hi All,
I have a setup.py that looks roughly like:
import os from setuptools import setup, find_packages ... setup( ... packages=find_packages(), zip_safe=False, include_package_data=True, ... )
...and a file layout roughly like:
/bootstrap.py /buildout.cfg /setup.py /mypackage/...
When I do setup.py sdist, the resulting .zip [1] file contains bootstrap.py and setup.py but not buildout.cfg, even though it is in svn.
I tried to brute force this by adding a MANIFEST.in next to setup.py containing : recursive-include . *.cfg ...but still buldout.cfg wasn't included. *sigh* Any ideas? Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk

Chris Withers wrote:
[1] Anyone know how to get .tgz source builds on windows rather than .zips?
Yes, do 'python setup.py sdist --formats=gztar'. You can find this yourself by doing 'python setup.py sdist -h' which will show (among other things): Options for 'sdist' command: --formats formats for source distribution (comma-separated list) --keep-temp (-k) keep the distribution tree around after creating archive file(s) --dist-dir (-d) directory to put the source distribution archive(s) in [default: dist] --help-formats list available distribution formats And then a 'python setup.py sdist --help-formats' results in: List of available source distribution formats: --formats=bztar bzip2'ed tar-file --formats=gztar gzip'ed tar-file --formats=tar uncompressed tar file --formats=zip ZIP file --formats=ztar compressed tar file -- Dave
participants (2)
-
Chris Withers
-
Dave Peterson