Comments
Patch
@@ -296,8 +296,6 @@
'rfc822',
'mimetools',
'sqlalchemy.events', # has import-time side effects (issue5085)
- # setuptools 8 expects this module to explode early when not on windows
- 'distutils.msvc9compiler',
]
rejects = {}
@@ -310,6 +308,11 @@
if not mod in rejects:
rejects[mod] = {}
rejects[mod][prop] = [cls, msg]
+
+# setuptools 8 expects this module to explode early when not on windows
+if os.name != 'nt':
+ reject('distutils', 'msvc9compiler', ImportError, 'No module named _winreg')
+
def isenabled():
return builtins.__import__ == _demandimport