diff options
author | David Cournapeau <cournape@gmail.com> | 2008-10-03 07:21:00 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-10-03 07:21:00 +0000 |
commit | 384e892dc5b44258af0906c48513ec7634a4eb8a (patch) | |
tree | 9b3b05205ada6dc459943c7753254e9120da6002 /numpy | |
parent | 9ae2bfa7bca6dcf9cec7de47b997e4c7999aba1b (diff) | |
download | numpy-384e892dc5b44258af0906c48513ec7634a4eb8a.tar.gz |
Start updating numscons configuration for new math config.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/SConscript | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/numpy/core/SConscript b/numpy/core/SConscript index 99eca9758..bc3c15993 100644 --- a/numpy/core/SConscript +++ b/numpy/core/SConscript @@ -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 @@ mfuncs = ('expl', 'expf', 'log1p', 'expm1', 'asinh', 'atanhf', 'atanhl', # 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>") |