diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-11-27 22:51:53 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-11-27 22:51:53 -0500 |
commit | 1808b23f9d4f8114ff8baa1afd9770e3ff9a4659 (patch) | |
tree | 0d0e1ac0a826280a22ace8d68bf247b37390442c /ez_setup.py | |
parent | 5cfca3b39c6d1f2c1655739432f3149195bf4789 (diff) | |
parent | dca452f0ed773557f5a5013cd77f76edfcbbb74e (diff) | |
download | external_python_setuptools-1808b23f9d4f8114ff8baa1afd9770e3ff9a4659.tar.gz external_python_setuptools-1808b23f9d4f8114ff8baa1afd9770e3ff9a4659.tar.bz2 external_python_setuptools-1808b23f9d4f8114ff8baa1afd9770e3ff9a4659.zip |
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.py | 2 |
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 |