Skip to content

Commit

Permalink
Fix blas detection
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-sans-paille committed Sep 1, 2024
1 parent a76f8c0 commit e6350f3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pythran/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6350f3

Please sign in to comment.