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

Method calc_info

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

Source from the content-addressed store, hash-verified

1307 default_include_dirs=[os.path.join(mklroot, 'include')])
1308
1309 def calc_info(self):
1310 lib_dirs = self.get_lib_dirs()
1311 incl_dirs = self.get_include_dirs()
1312 opt = self.get_option_single('mkl_libs', 'libraries')
1313 mkl_libs = self.get_libs(opt, self._lib_mkl)
1314 info = self.check_libs2(lib_dirs, mkl_libs)
1315 if info is None:
1316 return
1317 dict_append(info,
1318 define_macros=[('SCIPY_MKL_H', None),
1319 ('HAVE_CBLAS', None)],
1320 include_dirs=incl_dirs)
1321 if sys.platform == 'win32':
1322 pass # win32 has no pthread library
1323 else:
1324 dict_append(info, libraries=['pthread'])
1325 self.set_info(**info)
1326
1327
1328class lapack_mkl_info(mkl_info):

Callers 1

get_infoMethod · 0.45

Calls 7

get_lib_dirsMethod · 0.80
get_include_dirsMethod · 0.80
get_option_singleMethod · 0.80
get_libsMethod · 0.80
check_libs2Method · 0.80
set_infoMethod · 0.80
dict_appendFunction · 0.70

Tested by

no test coverage detected