From e6350f39a90e7141716bd6011b7ea1e96cb5afc8 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Sat, 31 Aug 2024 12:51:02 +0200 Subject: [PATCH] Fix blas detection --- pythran/config.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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