summaryrefslogtreecommitdiff
path: root/numpy/core/SConscript
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-09-21 09:42:05 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-09-21 09:42:05 +0000
commitd16426e1542b105344468353caed7448177a0e02 (patch)
tree7d6e2823f85a5b16f5235942725a6a521bebe810 /numpy/core/SConscript
parent576582863a390fed3d48f5a1e5fb9e0b47cadf68 (diff)
downloadnumpy-d16426e1542b105344468353caed7448177a0e02.tar.gz
ENH: add bypass mode to scons build.
On windows, most C99 functions are not available, so checking for them is wasteful. We still don't want to add platform-specific checks, but we add a mode so that we skip the checks if requested.
Diffstat (limited to 'numpy/core/SConscript')
-rw-r--r--numpy/core/SConscript10
1 files changed, 8 insertions, 2 deletions
diff --git a/numpy/core/SConscript b/numpy/core/SConscript
index a610781fd..c60b2e185 100644
--- a/numpy/core/SConscript
+++ b/numpy/core/SConscript
@@ -22,6 +22,11 @@ try:
ENABLE_SEPARATE_COMPILATION = True
except KeyError:
ENABLE_SEPARATE_COMPILATION = False
+try:
+ os.environ['NPY_BYPASS_SINGLE_EXTENDED']
+ BYPASS_SINGLE_EXTENDED = True
+except KeyError:
+ BYPASS_SINGLE_EXTENDED = False
env = GetNumpyEnvironment(ARGUMENTS)
env.Append(CPPPATH = env["PYEXTCPPPATH"])
@@ -171,8 +176,9 @@ for f in OPTIONAL_STDFUNCS_MAYBE:
check_funcs(OPTIONAL_STDFUNCS)
# C99 functions: float and long double versions
-check_funcs(C99_FUNCS_SINGLE)
-check_funcs(C99_FUNCS_EXTENDED)
+if not BYPASS_SINGLE_EXTENDED:
+ check_funcs(C99_FUNCS_SINGLE)
+ check_funcs(C99_FUNCS_EXTENDED)
# Normally, isnan and isinf are macro (C99), but some platforms only have
# func, or both func and macro version. Check for macro only, and define