summaryrefslogtreecommitdiff
path: root/numpy/core/setup_common.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/setup_common.py')
-rw-r--r--numpy/core/setup_common.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py
index d618fac69..141b62e76 100644
--- a/numpy/core/setup_common.py
+++ b/numpy/core/setup_common.py
@@ -122,13 +122,16 @@ for file in [
# Mandatory functions: if not found, fail the build
MANDATORY_FUNCS = ["sin", "cos", "tan", "sinh", "cosh", "tanh", "fabs",
"floor", "ceil", "sqrt", "log10", "log", "exp", "asin",
- "acos", "atan", "fmod", 'modf', 'frexp', 'ldexp']
-
-# Some of these are C99 functions.
-MANDATORY_FUNCS += ["expm1", "log1p", "acosh", "asinh", "atanh",
- "rint", "trunc", "exp2", "log2", "hypot", "atan2", "pow",
+ "acos", "atan", "fmod", 'modf', 'frexp', 'ldexp',
+ "expm1", "log1p", "acosh", "asinh", "atanh",
+ "rint", "trunc", "exp2", "hypot", "atan2", "pow",
"copysign", "nextafter", "strtoll", "strtoull", "cbrt"]
+OPTIONAL_STDFUNCS = [
+ # cygwin
+ "log2",
+]
+
OPTIONAL_LOCALE_FUNCS = ["strtold_l"]
OPTIONAL_FILE_FUNCS = ["ftello", "fseeko", "fallocate"]
OPTIONAL_MISC_FUNCS = ["backtrace", "madvise"]