1. Erik Bray
  2. setuptools


Erik Bray  committed 7d2d455

Make certain no previous imports of old versions of pkg_resources are floating around before importing the newly installed setuptools.

  • Participants
  • Parent commits 9dc434a
  • Branches default

Comments (0)

Files changed (1)

File ez_setup.py

View file
                                       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