summaryrefslogtreecommitdiff
path: root/ez_setup.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-11-27 22:51:53 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-11-27 22:51:53 -0500
commit13edf70eb6ea1603da7692b2a1f57ffb3c030f6d (patch)
tree7ca7d36bc99954bd8f4585bd31dca951f4f87790 /ez_setup.py
parent18254f49b017ebad7dcbe70f51210078338bbab1 (diff)
parenteae0a3d8ad48921e5887ea03c2e9e0d56635807a (diff)
downloadpython-setuptools-bitbucket-13edf70eb6ea1603da7692b2a1f57ffb3c030f6d.tar.gz
Merged in dweepcan/setuptools (pull request #153)
Unload all pkg_resources modules and not just the main module.
Diffstat (limited to 'ez_setup.py')
-rw-r--r--ez_setup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ez_setup.py b/ez_setup.py
index 4740248f..2f5e4856 100644
--- a/ez_setup.py
+++ b/ez_setup.py
@@ -125,7 +125,7 @@ def _do_download(version, download_base, to_dir, download_delay):
# Remove previously-imported pkg_resources if present (see
# https://bitbucket.org/pypa/setuptools/pull-request/7/ for details).
if 'pkg_resources' in sys.modules:
- del sys.modules['pkg_resources']
+ _unload_pkg_resources()
import setuptools
setuptools.bootstrap_install_from = egg