> On Jan 18, 2015, at 8:54 PM, Ben Finney <ben+pyt...@benfinney.id.au> wrote:
> 
> Donald Stufft <don...@stufft.io> writes:
> 
>> I’m confused what this actually is.
> 
> Please look at the example I cited, ‘python-daemon’ version 2.0.3.
> 
>> If it’s just a file you don’t want installed… then don’t specify it in
>> your setup.py’s setup() function in either the py_modules or the
>> packages keyword.
> 
> That doesn't have the desired effect; it is installed (unwanted) to the
> site packages along with the packages I do want.
> 

Line 53 of the setup.py for python-daemon version 2.0.3 has you calling
setuptools.find_packages(exclude=[“test”]) and passing the return value
of that to the packages kwarg. I’m pretty sure that find_packages is
going to discover version.py and add it as part of the return value which
is then passing that to the packages kwarg. Adding it to the exclude will
probably prevent it from being installed, although you might need to add
it to MANIFEST.in to ensure it gets added to the sdist.

---
Donald Stufft
PGP: 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
https://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to