[Numpy-svn] r5836 - branches/clean_math_config/numpy/core

numpy-svn at scipy.org numpy-svn at scipy.org
Sat Sep 20 04:22:32 EDT 2008


Author: cdavid
Date: 2008-09-20 03:22:25 -0500 (Sat, 20 Sep 2008)
New Revision: 5836

Modified:
   branches/clean_math_config/numpy/core/setup.py
Log:
Include Python.h before math.h for declaration tests in mathlib.

Modified: branches/clean_math_config/numpy/core/setup.py
===================================================================
--- branches/clean_math_config/numpy/core/setup.py	2008-09-19 19:43:05 UTC (rev 5835)
+++ branches/clean_math_config/numpy/core/setup.py	2008-09-20 08:22:25 UTC (rev 5836)
@@ -94,8 +94,10 @@
     # Normally, isnan and isinf are macro (C99), but some platforms only have
     # func, or both func and macro version. Check for macro only, and define
     # replacement ones if not found.
+    # Note: including Python.h is necessary because it modifies some math.h
+    # definitions
     for f in ["isnan", "isinf", "signbit", "isfinite"]:
-        st = config.check_decl(f, headers = ["math.h"])
+        st = config.check_decl(f, headers = ["Python.h", "math.h"])
         if st:
             moredefs.append(name_to_defsymb("decl_%s" % f))
 




More information about the Numpy-svn mailing list