Commit cd45725d authored by Stefan Behnel's avatar Stefan Behnel Committed by GitHub

Merge pull request #2920 from megawidget/darwin-pyimport-fix

fixes `pyximport.install(pyimport=True)` on the darwin architecture
parents 6150775a 19656b2d
...@@ -350,7 +350,7 @@ class PyImporter(PyxImporter): ...@@ -350,7 +350,7 @@ class PyImporter(PyxImporter):
language_level=language_level) language_level=language_level)
self.uncompilable_modules = {} self.uncompilable_modules = {}
self.blocked_modules = ['Cython', 'pyxbuild', 'pyximport.pyxbuild', self.blocked_modules = ['Cython', 'pyxbuild', 'pyximport.pyxbuild',
'distutils.extension', 'distutils.sysconfig'] 'distutils']
def find_module(self, fullname, package_path=None): def find_module(self, fullname, package_path=None):
if fullname in sys.modules: if fullname in sys.modules:
......
...@@ -8,7 +8,6 @@ import pyximport ...@@ -8,7 +8,6 @@ import pyximport
# blacklist for speed # blacklist for speed
import pyximport.pyxbuild, Cython.Compiler.Pipeline import pyximport.pyxbuild, Cython.Compiler.Pipeline
import distutils.core, distutils.ccompiler, distutils.command.build
pyximport.install(pyximport=False, pyimport=True, pyximport.install(pyximport=False, pyimport=True,
build_dir=os.path.join(os.path.dirname(__file__), "TEST_TMP")) build_dir=os.path.join(os.path.dirname(__file__), "TEST_TMP"))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment