[Numpy-svn] r6197 - trunk/numpy/core

numpy-svn at scipy.org numpy-svn at scipy.org
Fri Dec 26 09:40:03 EST 2008


Author: cdavid
Date: 2008-12-26 08:39:55 -0600 (Fri, 26 Dec 2008)
New Revision: 6197

Modified:
   trunk/numpy/core/setup.py
Log:
Do not test for functions already tested by python configure script.

Modified: trunk/numpy/core/setup.py
===================================================================
--- trunk/numpy/core/setup.py	2008-12-26 12:36:19 UTC (rev 6196)
+++ trunk/numpy/core/setup.py	2008-12-26 14:39:55 UTC (rev 6197)
@@ -81,6 +81,14 @@
     optional_stdfuncs = ["expm1", "log1p", "acosh", "asinh", "atanh",
                          "rint", "trunc", "exp2", "log2"]
 
+    # XXX: hack to circumvent cpp pollution from python: python put its
+    # config.h in the public namespace, so we have a clash for the common
+    # functions we test. We remove every function tested by python's autoconf,
+    # hoping their own test are correct
+    if sys.version_info[0] == 2 and sys.version_info[1] >= 6:
+        for f in ["expm1", "log1p", "acosh", "atanh", "asinh"]:
+            optional_stdfuncs.remove(f)
+
     check_funcs(optional_stdfuncs)
 
     # C99 functions: float and long double versions




More information about the Numpy-svn mailing list