summaryrefslogtreecommitdiff
path: root/numpy/core/setup.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2022-09-27 19:03:59 +0200
committerSebastian Berg <sebastian@sipsolutions.net>2022-09-28 14:57:11 +0200
commit05e213e85d165a74b11fe38a7fb95a48494f8c5f (patch)
tree91b9d3472114cbc8a892d1c6e529aad6922430f1 /numpy/core/setup.py
parentc6366c16844b162749dca5aab5f8541b319d99c9 (diff)
downloadnumpy-05e213e85d165a74b11fe38a7fb95a48494f8c5f.tar.gz
BLD: Add mandatory complex math feature detection with signature
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r--numpy/core/setup.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index fc09dba8b..49ec29489 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -134,7 +134,7 @@ def check_math_capabilities(config, ext, moredefs, mathlibs):
def check_func(
func_name,
decl=False,
- headers=["feature_detection_math.h"],
+ headers=["feature_detection_math.h", "feature_detection_cmath.h"],
):
return config.check_func(
func_name,
@@ -145,8 +145,10 @@ def check_math_capabilities(config, ext, moredefs, mathlibs):
headers=headers,
)
- def check_funcs_once(funcs_name, headers=["feature_detection_math.h"],
- add_to_moredefs=True):
+ def check_funcs_once(
+ funcs_name,
+ headers=["feature_detection_math.h", "feature_detection_cmath.h"],
+ add_to_moredefs=True):
call = dict([(f, True) for f in funcs_name])
call_args = dict([(f, FUNC_CALL_ARGS[f]) for f in funcs_name])
st = config.check_funcs_once(
@@ -161,7 +163,9 @@ def check_math_capabilities(config, ext, moredefs, mathlibs):
moredefs.extend([(fname2def(f), 1) for f in funcs_name])
return st
- def check_funcs(funcs_name, headers=["feature_detection_math.h"]):
+ def check_funcs(
+ funcs_name,
+ headers=["feature_detection_math.h", "feature_detection_cmath.h"]):
# Use check_funcs_once first, and if it does not work, test func per
# func. Return success only if all the functions are available
if not check_funcs_once(funcs_name, headers=headers):