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

numpy-svn@scip... numpy-svn@scip...
Wed Jun 2 22:00:29 CDT 2010


Author: cdavid
Date: 2010-06-02 22:00:28 -0500 (Wed, 02 Jun 2010)
New Revision: 8455

Modified:
   trunk/numpy/core/setup.py
Log:
BUG: fix missing macros definition for IEEE macros.

Modified: trunk/numpy/core/setup.py
===================================================================
--- trunk/numpy/core/setup.py	2010-06-02 17:09:50 UTC (rev 8454)
+++ trunk/numpy/core/setup.py	2010-06-03 03:00:28 UTC (rev 8455)
@@ -204,6 +204,10 @@
 
     macros = []
 
+    def _add_decl(f):
+        priv.append(fname2def("decl_%s" % f))
+        pub.append('NPY_%s' % fname2def("decl_%s" % f))
+
     # 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
@@ -215,6 +219,8 @@
                     headers=["Python.h", "math.h"])
             if not st:
                 macros.append(f)
+            else:
+                _add_decl(f)
     else:
         macros = _macros[:]
     # Normally, isnan and isinf are macro (C99), but some platforms only have
@@ -225,8 +231,7 @@
     for f in macros:
         st = config.check_decl(f, headers = ["Python.h", "math.h"])
         if st:
-            priv.append(fname2def("decl_%s" % f))
-            pub.append('NPY_%s' % fname2def("decl_%s" % f))
+            _add_decl(f)
 
     return priv, pub
 



More information about the Numpy-svn mailing list