Repository navigation
setuptools.find_packages() without parameters not excluding tests
#4082
|
Hi there, It's me again with another I'm trying to build a wheel for RTFDE from source. Upstream uses When I run Options to work around it:
According to the Automatic Discovery documentation neither should be necessary. What am I missing? I tried this with setuptools |
Replies: 4 comments
The docs suggest you leave out the
If automatic discovery is not enough for your project structure, then you can use It is usually a good idea to start with |
|
The reason why it contains If the original author does not mean to distribute |
Thanks! That was it. I seem to have a hard time remembering that leaving out I'll try to remember that. But maybe adding something like:
The above in addition to the info box that mentions not defining any of the other parameters. Or maybe on top of that box. Having |
It's almost always a mistake. But one that happens very often. I can see why. |
The docs suggest you leave out the
packagesconfig completely, so setuptools finds it out based on some heuristics (shold work for the majority of pckages). This paragraph from the docs is relevant:If automatic discovery is not enough for your project structure, then you can use
find_packagesfor customisation. Note, however, that when you usefind_packages, you are in complete control: no heuristics are applied. So yo…