From 32ce1f20d60722db8cc99eecdc4b7bf6e627730e Mon Sep 17 00:00:00 2001 From: Erik Bray Date: Fri, 19 Jul 2013 19:02:37 -0400 Subject: Make certain no previous imports of old versions of pkg_resources are floating around before importing the newly installed setuptools. --- ez_setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ez_setup.py b/ez_setup.py index 22f14f73..6b2a023b 100644 --- a/ez_setup.py +++ b/ez_setup.py @@ -100,6 +100,8 @@ def _do_download(version, download_base, to_dir, download_delay): to_dir, download_delay) _build_egg(egg, tarball, to_dir) sys.path.insert(0, egg) + if 'pkg_resources' in sys.modules: + del sys.modules['pkg_resources'] import setuptools setuptools.bootstrap_install_from = egg -- cgit v1.2.3