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

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


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

Modified:
   branches/clean_math_config/numpy/core/SConscript
Log:
Start updating numscons configuration for new math config.

Modified: branches/clean_math_config/numpy/core/SConscript
===================================================================
--- branches/clean_math_config/numpy/core/SConscript	2008-10-03 06:51:03 UTC (rev 5897)
+++ branches/clean_math_config/numpy/core/SConscript	2008-10-03 07:21:00 UTC (rev 5898)
@@ -1,4 +1,4 @@
-# Last Change: Tue Aug 05 12:00 PM 2008 J
+# Last Change: Fri Oct 03 03:00 PM 2008 J
 # vim:syntax=python
 import os
 import sys
@@ -136,7 +136,15 @@
 # Set value to 1 for each defined function (in math lib)
 mfuncs_defined = dict([(f, 0) for f in mfuncs])
 
-# TODO: checklib vs checkfunc ?
+# Check for mandatory funcs: we barf if a single one of those is not there
+mandatory_funcs = ["sin", "cos", "tan", "sinh", "cosh", "tanh", "fabs",
+"floor", "ceil", "sqrt", "log10", "log", "exp", "asin", "acos", "atan", "fmod",
+'modf', 'frexp', 'ldexp']
+
+if not config.CheckFuncsAtOnce(mandatory_funcs):
+    raise SystemError("One of the required function to build numpy is not"
+            " available (the list is %s)." % str(mandatory_funcs))
+
 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