(self)
| 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 | |
| 3175 | def combine_paths(*args, **kws): |
nothing calls this directly
no test coverage detected