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

Method _find_libs

numpy/distutils/system_info.py:1042–1053  ·  view source on GitHub ↗
(self, lib_dirs, libs, exts)

Source from the content-addressed store, hash-verified

1040 return False
1041
1042 def _find_libs(self, lib_dirs, libs, exts):
1043 # make sure we preserve the order of libs, as it can be important
1044 found_dirs, found_libs = [], []
1045 for lib in libs:
1046 for lib_dir in lib_dirs:
1047 found_lib = self._find_lib(lib_dir, lib, exts)
1048 if found_lib:
1049 found_libs.append(found_lib)
1050 if lib_dir not in found_dirs:
1051 found_dirs.append(lib_dir)
1052 break
1053 return found_dirs, found_libs
1054
1055 def _check_libs(self, lib_dirs, libs, opt_libs, exts):
1056 """Find mandatory and optional libs in expected paths.

Callers 1

_check_libsMethod · 0.95

Calls 1

_find_libMethod · 0.95

Tested by

no test coverage detected