MCPcopy Create free account
hub / github.com/numpy/numpy / check_funcs

Function check_funcs

numpy/core/setup.py:174–186  ·  view source on GitHub ↗
(
            funcs_name,
            headers=["feature_detection_math.h", "feature_detection_cmath.h"])

Source from the content-addressed store, hash-verified

172 return st
173
174 def check_funcs(
175 funcs_name,
176 headers=["feature_detection_math.h", "feature_detection_cmath.h"]):
177 # Use check_funcs_once first, and if it does not work, test func per
178 # func. Return success only if all the functions are available
179 if not check_funcs_once(funcs_name, headers=headers):
180 # Global check failed, check func per func
181 for f in funcs_name:
182 if check_func(f, headers=headers):
183 moredefs.append((fname2def(f), 1))
184 return 0
185 else:
186 return 1
187
188 #use_msvc = config.check_decl("_MSC_VER")
189 if not check_funcs_once(MANDATORY_FUNCS, add_to_moredefs=False):

Callers 1

check_math_capabilitiesFunction · 0.85

Calls 3

check_funcs_onceFunction · 0.85
check_funcFunction · 0.85
fname2defFunction · 0.85

Tested by

no test coverage detected