From: Stefan Behnel Date: Mon, 11 Apr 2011 21:34:44 +0000 (+0200) Subject: blacklist distutils.extension in pyximport X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0befa5f794e680e65624b12feac633e58d2f8b2f;p=cython.git blacklist distutils.extension in pyximport --- diff --git a/pyximport/pyximport.py b/pyximport/pyximport.py index c0e91f7d..6cd072ee 100644 --- a/pyximport/pyximport.py +++ b/pyximport/pyximport.py @@ -261,7 +261,7 @@ class PyImporter(PyxImporter): self.super = super(PyImporter, self) self.super.__init__(extension='.py', pyxbuild_dir=pyxbuild_dir) self.uncompilable_modules = {} - self.blocked_modules = ['Cython'] + self.blocked_modules = ['Cython', 'distutils.extension'] def find_module(self, fullname, package_path=None): if fullname in sys.modules: @@ -288,13 +288,13 @@ class PyImporter(PyxImporter): try: importer = self.super.find_module(fullname, package_path) if importer is not None: - if DEBUG_IMPORT: - print("importer found") try: if importer.init_path: path = importer.init_path else: path = importer.path + if DEBUG_IMPORT: + print("importer found path %s" % path) build_module(fullname, path, pyxbuild_dir=self.pyxbuild_dir) except Exception, e: