From: Stefan Behnel Date: Fri, 22 Apr 2011 17:08:55 +0000 (+0200) Subject: blacklist distutils sysconfig module in pyximport (needs to reside inside CPython) X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8ea879e25cf4adf5b393beab0ddf9d81fdc2b63b;p=cython.git blacklist distutils sysconfig module in pyximport (needs to reside inside CPython) --- diff --git a/pyximport/pyximport.py b/pyximport/pyximport.py index 6cd072ee..05d6cda0 100644 --- a/pyximport/pyximport.py +++ b/pyximport/pyximport.py @@ -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: