blacklist distutils sysconfig module in pyximport (needs to reside inside CPython)
authorStefan Behnel <scoder@users.berlios.de>
Fri, 22 Apr 2011 17:08:55 +0000 (19:08 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 22 Apr 2011 17:08:55 +0000 (19:08 +0200)
pyximport/pyximport.py

index 6cd072ee4171b9d7a7b521accd284399b42ff521..05d6cda089e87264108f8ff2f585a74e6525da6c 100644 (file)
@@ -261,7 +261,8 @@ class PyImporter(PyxImporter):
         self.super = super(PyImporter, self)
         self.super.__init__(extension='.py', pyxbuild_dir=pyxbuild_dir)
         self.uncompilable_modules = {}
-        self.blocked_modules = ['Cython', 'distutils.extension']
+        self.blocked_modules = ['Cython', 'distutils.extension',
+                                'distutils.sysconfig']
 
     def find_module(self, fullname, package_path=None):
         if fullname in sys.modules: