Windows: fix testcase to not link libm
authorLisandro Dalcin <dalcinl@gmail.com>
Mon, 7 Feb 2011 22:10:24 +0000 (19:10 -0300)
committerLisandro Dalcin <dalcinl@gmail.com>
Mon, 7 Feb 2011 22:10:24 +0000 (19:10 -0300)
tests/build/inline_distutils.srctree

index 7ff3859b03b45d5d0115544166b19cf57ec707a1..155ade26e1ed01541379efa8263a7e3c6c73fb89 100644 (file)
@@ -8,9 +8,14 @@ PYTHON -c "import a"
 from Cython.Build.Dependencies import cythonize
 
 from distutils.core import setup
+import sys
+if sys.platform == 'win32':
+   MATH_LIBS = []
+else:
+   MATH_LIBS = ['m']
 
 setup(
-  ext_modules = cythonize("*.pyx", aliases={'MATH_LIBS': ['m']}),
+  ext_modules = cythonize("*.pyx", aliases={'MATH_LIBS': MATH_LIBS}),
 )
 
 ######## my_lib.pxd ########