diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2016-03-18 10:41:39 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-03-18 10:41:39 -0400 |
| commit | 4dc77981545d47e5cfc6264ff6e45b47d727776a (patch) | |
| tree | 103e6b1a4ee39806d04b11615eb302c4d5a3c559 | |
| parent | e570a849413f3325c3583afa1fe4f083c9302f92 (diff) | |
| parent | 071e0ed8fea0ab719a9b4a7d1f71c27a5754b819 (diff) | |
| download | external_python_setuptools-4dc77981545d47e5cfc6264ff6e45b47d727776a.tar.gz external_python_setuptools-4dc77981545d47e5cfc6264ff6e45b47d727776a.tar.bz2 external_python_setuptools-4dc77981545d47e5cfc6264ff6e45b47d727776a.zip | |
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
| -rw-r--r-- | ez_setup.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ez_setup.py b/ez_setup.py index 9715bdc7..d6f4b78c 100644 --- a/ez_setup.py +++ b/ez_setup.py @@ -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') |
