pkg_resources relies on an internal implementation detail of CPython #378
Apparently pkg_resources is importing importlib._bootstrap, which is not meant to be directly imported. It is used later to get SourceFileLoader and FileFinder. I noticed this due to a failing test (test_venv) in the CPython suite when I moved both those classes to a different file (no longer in _bootstrap.py). See http://bugs.python.org/issue23911.
Starting in Python 3.3 the two classes are exposed in importlib.machinery. I'd recommend updating the code to look something like this:
and update the rest of the file (3 spots) accordingly.
The text was updated successfully, but these errors were encountered: