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

numpy-svn@scip... numpy-svn@scip...
Fri Oct 3 02:21:22 CDT 2008


Author: cdavid
Date: 2008-10-03 02:21:15 -0500 (Fri, 03 Oct 2008)
New Revision: 5899

Modified:
   branches/clean_math_config/numpy/core/SConscript
Log:
Add an help function to check a list of functions in scons build.

Modified: branches/clean_math_config/numpy/core/SConscript
===================================================================
--- branches/clean_math_config/numpy/core/SConscript	2008-10-03 07:21:00 UTC (rev 5898)
+++ branches/clean_math_config/numpy/core/SConscript	2008-10-03 07:21:15 UTC (rev 5899)
@@ -145,6 +145,15 @@
     raise SystemError("One of the required function to build numpy is not"
             " available (the list is %s)." % str(mandatory_funcs))
 
+def check_funcs(funcs):
+    # Use check_funcs_once first, and if it does not work, test func per
+    # func. Return success only if all the functions are available
+    st = config.CheckFuncsAtOnce(func)
+    if not st:
+        # Global check failed, check func per func
+        for f in funcs:
+            st = config.CheckFunc(f, language = 'C')
+
 def check_func(f):
     """Check that f is available in mlib, and add the symbol appropriately.  """
     st = config.CheckDeclaration(f, language = 'C', includes = "#include <math.h>")



More information about the Numpy-svn mailing list