diff --git a/pythran/config.py b/pythran/config.py index c4a3e71e3..e36a2ee88 100644 --- a/pythran/config.py +++ b/pythran/config.py @@ -282,9 +282,8 @@ def parse_define(define): numpy_blas.get('library_dirs', [])) # `numpy.distutils` not present for Python >= 3.12 except ImportError: - blas = numpy.show_config('dicts')["Build Dependencies"]["blas"] - libblas = {'openblas64': 'openblas'}.get(blas['name'], blas['name']) - extension["libraries"].append(libblas) + extension["libraries"].append(user_blas) + extension['define_macros'].append('PYTHRAN_BLAS_{}'.format(user_blas.upper())) # final macro normalization