Commit 1808b23f authored by Jason R. Coombs's avatar Jason R. Coombs

Merged in dweepcan/setuptools (pull request #153)

Unload all pkg_resources modules and not just the main module.
parents 5cfca3b3 dca452f0
......@@ -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
......
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