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

Method check_libs

numpy/distutils/system_info.py:985–1001  ·  view source on GitHub ↗

If static or shared libraries are available then return their info dictionary. Checks for all libraries as shared libraries first, then static (or vice versa if self.search_static_first is True).

(self, lib_dirs, libs, opt_libs=[])

Source from the content-addressed store, hash-verified

983 return exts
984
985 def check_libs(self, lib_dirs, libs, opt_libs=[]):
986 """If static or shared libraries are available then return
987 their info dictionary.
988
989 Checks for all libraries as shared libraries first, then
990 static (or vice versa if self.search_static_first is True).
991 """
992 exts = self.library_extensions()
993 info = None
994 for ext in exts:
995 info = self._check_libs(lib_dirs, libs, opt_libs, [ext])
996 if info is not None:
997 break
998 if not info:
999 log.info(' libraries %s not found in %s', ','.join(libs),
1000 lib_dirs)
1001 return info
1002
1003 def check_libs2(self, lib_dirs, libs, opt_libs=[]):
1004 """If static or shared libraries are available then return

Callers 8

calc_libraries_infoMethod · 0.95
calc_ver_infoMethod · 0.80
calc_infoMethod · 0.80
calc_infoMethod · 0.80
_calc_infoMethod · 0.80
calc_infoMethod · 0.80
calc_infoMethod · 0.80
calc_infoMethod · 0.80

Calls 4

library_extensionsMethod · 0.95
_check_libsMethod · 0.95
infoMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected