I am packaging my source code, but I do not want to include tests and docs because it will be too big.
To do that I include in my setup.py:
setup(...
packages=find_packages(exclude=['tests.*','tests','docs.*','docs']),
...
)
When doing a
python setup.py sdist
I can see that my root tests/ and docs/ dirs and everything inside are still included in the generated distribution.
It seems that only
python setup.py bdist
is sensible to the exclude parameter.
Why ? is it possible to exclude dirs for 'setup.py sdist' ?
I solved the problem by removing the *.egg-info/ directory : it seems that this directory memorized some older settings...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With