2 ms·
One of the comments below the article mentions this, but in my experience on Linux and Mac, by far the biggest culprit is pkg_resources and its nasty habit of s
by mikepurvis 9y ago
One of the comments below the article mentions this, but in my experience on Linux and Mac, by far the biggest culprit is pkg_resources and its nasty habit of spidering the filesystem:
https://github.com/pypa/setuptools/issues/926 https://github.com/pypa/setuptools/issues/926
There are hacks to get around it, but it's a deep hole.
- orf 9y agoPeople often complain that using `entry_points` in setup.py is slow. I did some profiling and it came down to it importing some `pip` submodule (pip.vendor.something), which imported basically the whole of pip. :(