Commit 4dc77981 authored by Jason R. Coombs's avatar Jason R. Coombs

Merged in...

Merged in agronholm/setuptools/agronholm/remove-the-import-hook-when-unloading-th-1458177009332 (pull request #182)
. Fixes #519.
Remove the import hook when unloading the old pkg_resources modules
parents e570a849 071e0ed8
......@@ -192,6 +192,8 @@ def _conflict_bail(VC_err, version):
def _unload_pkg_resources():
sys.meta_path = [importer for importer in sys.meta_path if
importer.__class__.__module__ != 'pkg_resources.extern']
del_modules = [
name for name in sys.modules
if name.startswith('pkg_resources')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment