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

Method library_extensions

numpy/distutils/system_info.py:967–983  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

965 return self.get_libs(key, '')
966
967 def library_extensions(self):
968 c = customized_ccompiler()
969 static_exts = []
970 if c.compiler_type != 'msvc':
971 # MSVC doesn't understand binutils
972 static_exts.append('.a')
973 if sys.platform == 'win32':
974 static_exts.append('.lib') # .lib is used by MSVC and others
975 if self.search_static_first:
976 exts = static_exts + [so_ext]
977 else:
978 exts = [so_ext] + static_exts
979 if sys.platform == 'cygwin':
980 exts.append('.dll.a')
981 if sys.platform == 'darwin':
982 exts.append('.dylib')
983 return exts
984
985 def check_libs(self, lib_dirs, libs, opt_libs=[]):
986 """If static or shared libraries are available then return

Callers 3

check_libsMethod · 0.95
check_libs2Method · 0.95
calc_infoMethod · 0.80

Calls 1

customized_ccompilerFunction · 0.70

Tested by

no test coverage detected