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

Function get_mathlib_info

numpy/core/setup.py:666–676  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

664 subst_dict = dict([("sep", os.path.sep), ("pkgname", "numpy.core")])
665
666 def get_mathlib_info(*args):
667 # Another ugly hack: the mathlib info is known once build_src is run,
668 # but we cannot use add_installed_pkg_config here either, so we only
669 # update the substitution dictionary during npymath build
670 config_cmd = config.get_config_cmd()
671 mlibs = check_mathlib(config_cmd)
672
673 posix_mlib = ' '.join(['-l%s' % l for l in mlibs])
674 msvc_mlib = ' '.join(['%s.lib' % l for l in mlibs])
675 subst_dict["posix_mathlib"] = posix_mlib
676 subst_dict["msvc_mathlib"] = msvc_mlib
677
678 npymath_sources = [join('src', 'npymath', 'npy_math_internal.h.src'),
679 join('src', 'npymath', 'npy_math.c'),

Callers

nothing calls this directly

Calls 3

check_mathlibFunction · 0.85
get_config_cmdMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected