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

numpy-svn@scip... numpy-svn@scip...
Thu Feb 26 08:41:40 CST 2009


Author: cdavid
Date: 2009-02-26 08:41:19 -0600 (Thu, 26 Feb 2009)
New Revision: 6499

Modified:
   trunk/numpy/core/setup.py
Log:
Do not unconditionally remove some function checks.

Modified: trunk/numpy/core/setup.py
===================================================================
--- trunk/numpy/core/setup.py	2009-02-26 14:07:23 UTC (rev 6498)
+++ trunk/numpy/core/setup.py	2009-02-26 14:41:19 UTC (rev 6499)
@@ -141,7 +141,8 @@
     # 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)
+	    if config.check_decl(fname2def(f), headers = ["Python.h", "math.h"]):
+                optional_stdfuncs.remove(f)
 
     check_funcs(optional_stdfuncs)
 



More information about the Numpy-svn mailing list