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

numpy-svn@scip... numpy-svn@scip...
Thu Feb 26 08:06:33 CST 2009


Author: cdavid
Date: 2009-02-26 08:06:29 -0600 (Thu, 26 Feb 2009)
New Revision: 6494

Modified:
   trunk/numpy/core/setup.py
Log:
Rename name_to_defsymb for consistency.

Modified: trunk/numpy/core/setup.py
===================================================================
--- trunk/numpy/core/setup.py	2009-02-26 13:22:02 UTC (rev 6493)
+++ trunk/numpy/core/setup.py	2009-02-26 14:06:29 UTC (rev 6494)
@@ -92,7 +92,7 @@
         st = config.check_funcs_once(funcs_name, libraries=mathlibs,
                                      decl=decl, call=decl)
         if st:
-            moredefs.extend([name_to_defsymb(f) for f in funcs_name])
+            moredefs.extend([fname2def(f) for f in funcs_name])
         return st
 
     def check_funcs(funcs_name):
@@ -102,14 +102,11 @@
             # Global check failed, check func per func
             for f in funcs_name:
                 if check_func(f):
-                    moredefs.append(name_to_defsymb(f))
+                    moredefs.append(fname2def(f))
             return 0
         else:
             return 1
 
-    def name_to_defsymb(name):
-        return "HAVE_%s" % name.upper()
-
     #use_msvc = config.check_decl("_MSC_VER")
 
     # Mandatory functions: if not found, fail the build
@@ -157,8 +154,11 @@
     for f in ["isnan", "isinf", "signbit", "isfinite"]:
         st = config.check_decl(f, headers = ["Python.h", "math.h"])
         if st:
-            moredefs.append(name_to_defsymb("decl_%s" % f))
+            moredefs.append(fname2def("decl_%s" % f))
 
+def fname2def(name):
+    return "HAVE_%s" % name.upper()
+
 def check_types(config_cmd, ext, build_dir):
     private_defines = []
     public_defines = []



More information about the Numpy-svn mailing list