From: Stefan Behnel Date: Wed, 9 Apr 2008 15:55:32 +0000 (+0200) Subject: use Extension class of Cython's Distutils package in tests X-Git-Tag: 0.9.6.14~20^2~36 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4d05ad331d90c2450ce6766abdf6e336ea41b10a;p=cython.git use Extension class of Cython's Distutils package in tests --- diff --git a/runtests.py b/runtests.py index 4eaf92e6..1c3441bb 100644 --- a/runtests.py +++ b/runtests.py @@ -2,10 +2,7 @@ import os, sys, unittest, doctest -#from Cython.Distutils.build_ext import build_ext -#from Cython.Distutils.extension import Extension - -from distutils.extension import Extension +from Cython.Distutils.extension import Extension from Cython.Distutils import build_ext from distutils.dist import Distribution @@ -72,6 +69,7 @@ class CythonCompileTestCase(unittest.TestCase): module, sources = [os.path.join(directory, module + '.pyx')], extra_compile_args = CFLAGS, + pyrex_c_in_temp = 1 ) build_extension.extensions = [extension] build_extension.build_temp = workdir