Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
setuptools.find_packages() is much slower than it needs to be. #412
If you need convincing that this might be important, read on, otherwise just wait for my pull request :-)
In particular, it badly affects tox - a common Python testing tool used in development that runs tests against various versions of dependencies. tox creates virtual environments for each environment to test, and typically uses a local
These virtualenvs (of which there can easily be dozens) are stored in a
tox is not the only reason why the local dir could contain lots of files - other things like git/hg mean there can be many files in the local directory.
Issue #326 might be to do with this, but the original reporter seemed to think otherwise.
Thankfully, the issue is easily fixed - these hidden dirs are filtered away by the code, and all we need to do is filter them away earlier so that the recursive walk short-circuits. Pull request to follow.