views:

393

answers:

1

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/issue64) version of setuptools trunk, with subversion 1.6.)

thanks for any insight you might have

-frank

+2  A: 

I don't know if there is a regular way to do that but you you try a workaround like proposed in the http://stackoverflow.com/questions/1129180/how-can-i-make-setuptools-ignore-subversion-inventory

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

luc