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

Method calc_info

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

Source from the content-addressed store, hash-verified

3145 _lib_names = ['umfpack']
3146
3147 def calc_info(self):
3148 lib_dirs = self.get_lib_dirs()
3149
3150 opt = self.get_option_single('umfpack_libs', 'libraries')
3151 umfpack_libs = self.get_libs(opt, self._lib_names)
3152 info = self.check_libs(lib_dirs, umfpack_libs, [])
3153 if info is None:
3154 return
3155
3156 include_dirs = self.get_include_dirs()
3157
3158 inc_dir = None
3159 for d in include_dirs:
3160 p = self.combine_paths(d, ['', 'umfpack'], 'umfpack.h')
3161 if p:
3162 inc_dir = os.path.dirname(p[0])
3163 break
3164 if inc_dir is not None:
3165 dict_append(info, include_dirs=[inc_dir],
3166 define_macros=[('SCIPY_UMFPACK_H', None)],
3167 swig_opts=['-I' + inc_dir])
3168
3169 dict_append(info, **get_info('amd'))
3170
3171 self.set_info(**info)
3172 return
3173
3174
3175def combine_paths(*args, **kws):

Callers

nothing calls this directly

Calls 9

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
get_infoFunction · 0.70

Tested by

no test coverage detected