Commit 0194c111 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
parent 02e24158
......@@ -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
......@@ -830,10 +829,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