Commit bae24f0f authored by Stefan Behnel's avatar Stefan Behnel

postpone import of distutils Extension type in test runner in case setuptools...

postpone import of distutils Extension type in test runner in case setuptools gets imported in between

--HG--
extra : transplant_source : %9B%C2%08Q%DDt%9A%99%A4%CAK%5D%8F%3A%A9%E4F%19%96%CD
parent 99e9381e
......@@ -71,7 +71,6 @@ except NameError:
WITH_CYTHON = True
CY3_DIR = None
from distutils.core import Extension
from distutils.command.build_ext import build_ext as _build_ext
from distutils import sysconfig
......@@ -869,10 +868,12 @@ class CythonCompileTestCase(unittest.TestCase):
related_files = self.related_files(test_directory, module)
self.copy_files(test_directory, workdir, related_files)
from distutils.core import Extension
extension = Extension(
module,
sources = self.source_files(workdir, module, related_files),
extra_compile_args = ext_compile_flags,
sources=self.source_files(workdir, module, related_files),
extra_compile_args=ext_compile_flags,
**extra_extension_args
)
......
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