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

Method calc_info

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

Source from the content-addressed store, hash-verified

2145 return getattr(self, '_calc_info_{}'.format(name))()
2146
2147 def calc_info(self):
2148 blas_order, unknown_order = _parse_env_order(self.blas_order, self.order_env_var_name)
2149 if len(unknown_order) > 0:
2150 raise ValueError("blas_opt_info user defined BLAS order has unacceptable values: {}".format(unknown_order))
2151
2152 if 'NPY_BLAS_LIBS' in os.environ:
2153 # Bypass autodetection, set language to F77 and use env var linker
2154 # flags directly
2155 self._calc_info_from_envvar()
2156 return
2157
2158 for blas in blas_order:
2159 if self._calc_info(blas):
2160 return
2161
2162 if 'blas' not in blas_order:
2163 # Since the user may request *not* to use any library, we still need
2164 # to raise warnings to signal missing packages!
2165 warnings.warn(BlasNotFoundError.__doc__ or '', stacklevel=2)
2166 warnings.warn(BlasSrcNotFoundError.__doc__ or '', stacklevel=2)
2167
2168
2169class blas_ilp64_opt_info(blas_opt_info, _ilp64_opt_info_mixin):

Callers

nothing calls this directly

Calls 4

_calc_infoMethod · 0.95
_parse_env_orderFunction · 0.85
warnMethod · 0.80

Tested by

no test coverage detected