Commit 4d05ad33 authored by Stefan Behnel's avatar Stefan Behnel

use Extension class of Cython's Distutils package in tests

parent 0afe6e15
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
import os, sys, unittest, doctest import os, sys, unittest, doctest
#from Cython.Distutils.build_ext import build_ext from Cython.Distutils.extension import Extension
#from Cython.Distutils.extension import Extension
from distutils.extension import Extension
from Cython.Distutils import build_ext from Cython.Distutils import build_ext
from distutils.dist import Distribution from distutils.dist import Distribution
...@@ -72,6 +69,7 @@ class CythonCompileTestCase(unittest.TestCase): ...@@ -72,6 +69,7 @@ class CythonCompileTestCase(unittest.TestCase):
module, module,
sources = [os.path.join(directory, module + '.pyx')], sources = [os.path.join(directory, module + '.pyx')],
extra_compile_args = CFLAGS, extra_compile_args = CFLAGS,
pyrex_c_in_temp = 1
) )
build_extension.extensions = [extension] build_extension.extensions = [extension]
build_extension.build_temp = workdir build_extension.build_temp = workdir
......
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