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

Method calc_info

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

Source from the content-addressed store, hash-verified

3113 _lib_names = ['amd']
3114
3115 def calc_info(self):
3116 lib_dirs = self.get_lib_dirs()
3117
3118 opt = self.get_option_single('amd_libs', 'libraries')
3119 amd_libs = self.get_libs(opt, self._lib_names)
3120 info = self.check_libs(lib_dirs, amd_libs, [])
3121 if info is None:
3122 return
3123
3124 include_dirs = self.get_include_dirs()
3125
3126 inc_dir = None
3127 for d in include_dirs:
3128 p = self.combine_paths(d, 'amd.h')
3129 if p:
3130 inc_dir = os.path.dirname(p[0])
3131 break
3132 if inc_dir is not None:
3133 dict_append(info, include_dirs=[inc_dir],
3134 define_macros=[('SCIPY_AMD_H', None)],
3135 swig_opts=['-I' + inc_dir])
3136
3137 self.set_info(**info)
3138 return
3139
3140
3141class umfpack_info(system_info):

Callers

nothing calls this directly

Calls 8

get_lib_dirsMethod · 0.80
get_option_singleMethod · 0.80
get_libsMethod · 0.80
check_libsMethod · 0.80
get_include_dirsMethod · 0.80
combine_pathsMethod · 0.80
set_infoMethod · 0.80
dict_appendFunction · 0.70

Tested by

no test coverage detected