Re: [Distutils] exclude a module, or can setuptools honor svn:ignore flag?
At 03:45 PM 7/20/2009 +0200, Frank Hoffsümmer wrote:
Hello I have a python project, 'myproject', that contains several packages. one of those packages, 'myproject.settings', contains a module 'myproject.settings.local' that is excluded from version control via 'svn:ignore' property. I would like setuptools to ignore this file when making a bdist or bdist_egg target. I have experimented with find_packages(exclude..) to no avail. Ideally I was hoping that only files that are not ignored by svn would be included. Is there a way to achieve the exclusion of my module? I am on a patched (http://bugs.python.org/setuptools/issue64http://bugs.python.org/setuptools/issue64) version of setuptools trunk, with subversion 1.6. thanks for any insight you might have -frank
You might be able to use an exclusion rule in MANIFEST.in... but I think it would probably only affect an sdist. You'd then have to build from the sdist to get it to exclude. This is certainly something that should be fixed in setuptools.
participants (1)
-
P.J. Eby