From eb2a53029aa55b889b31a895324cc4eac380159a Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 22 Apr 2011 19:08:55 +0200 Subject: [PATCH] blacklist distutils sysconfig module in pyximport (needs to reside inside CPython) --- pyximport/pyximport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.26.2