From: Lisandro Dalcin Date: Mon, 7 Feb 2011 22:10:24 +0000 (-0300) Subject: Windows: fix testcase to not link libm X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3bf09ae8d4a3a5f2095ffe781354e0a761557cf1;p=cython.git Windows: fix testcase to not link libm --- diff --git a/tests/build/inline_distutils.srctree b/tests/build/inline_distutils.srctree index 7ff3859b..155ade26 100644 --- a/tests/build/inline_distutils.srctree +++ b/tests/build/inline_distutils.srctree @@ -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 ########