From 3bf09ae8d4a3a5f2095ffe781354e0a761557cf1 Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin <dalcinl@gmail.com> Date: Mon, 7 Feb 2011 19:10:24 -0300 Subject: [PATCH] Windows: fix testcase to not link libm --- tests/build/inline_distutils.srctree | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 ######## -- 2.26.2