Commits

tarek  committed e4ffdaa

_get_unpatched unpatches also setuptools patched distribution class

  • Participants
  • Parent commits 634adaf

Comments (0)

Files changed (1)

File distribute/distribute/core/dist.py

     Also ensures that no other distutils extension monkeypatched the distutils
     first.
     """
-    while cls.__module__.startswith('distribute'):
+    mod = cls.__module__
+    while mod.startswith('distribute') or mod.startswith('setuptools'):
         cls, = cls.__bases__
+        mod = cls.__module__
+
     if not cls.__module__.startswith('distutils'):
         raise AssertionError(
             "distutils has already been patched by %r" % cls