summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-02-26 14:41:19 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-02-26 14:41:19 +0000
commit10afe75ab8bb3522428ed3aee9264e45759a5816 (patch)
tree72cc12cd2aa90015a7675de6fed95425ba64c304 /numpy
parente122cedce5154ac7c4e9fb6cc8316d4574b7f071 (diff)
downloadnumpy-10afe75ab8bb3522428ed3aee9264e45759a5816.tar.gz
Do not unconditionally remove some function checks.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index 19da50fc5..5329f57a0 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -141,7 +141,8 @@ def check_math_capabilities(config, moredefs, mathlibs):
# hoping their own test are correct
if sys.version_info[0] == 2 and sys.version_info[1] >= 6:
for f in ["expm1", "log1p", "acosh", "atanh", "asinh"]:
- optional_stdfuncs.remove(f)
+ if config.check_decl(fname2def(f), headers = ["Python.h", "math.h"]):
+ optional_stdfuncs.remove(f)
check_funcs(optional_stdfuncs)