From 4d05ad331d90c2450ce6766abdf6e336ea41b10a Mon Sep 17 00:00:00 2001
From: Stefan Behnel <scoder@users.berlios.de>
Date: Wed, 9 Apr 2008 17:55:32 +0200
Subject: [PATCH] use Extension class of Cython's Distutils package in tests

---
 runtests.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/runtests.py b/runtests.py
index 4eaf92e62..1c3441bbf 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
-- 
2.30.9