Python distutils / setuptools: how to exclude a module or read svn: ignore the flag

I have a python project, 'myproject', containing several packages. one of these packages "myproject.settings" contains the module "myproject.settings.local", which is excluded from version control through the "svn: ignore" property.

I want setuptools to ignore this file when creating bdist or bdist_egg.

I experimented with find_packages (exclude ..) to no avail. Ideally, I was hoping that only files that were not ignored by svn would be included.

Is there any way to achieve the exception of my module? (I'm on a fixed ( http://bugs.python.org/setuptools/issue64 ) version of setuptools trunk, with subversion 1.6.)

Thank you for any understanding you may have.

-frank

+4
source share
1 answer

I don’t know if you have the usual way to do this, but you will try the workaround as suggested in How can I make setuptools ignore subversion inventory?

svn export your package to a temporary directory, run setup.py from there

+2
source

All Articles