Skip to content

Commit

Permalink
Drop legacy numpy support for blas detection
Browse files Browse the repository at this point in the history
It was not working correctly anyway
  • Loading branch information
serge-sans-paille committed Sep 22, 2024
1 parent 1ae3585 commit d63b00b
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions pythran/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,18 +272,8 @@ def parse_define(define):
extension['define_macros'].append('PYTHRAN_BLAS_NONE')

if user_blas not in reserved_blas_entries:
try:
import numpy.distutils.system_info as numpy_sys
# Numpy can pollute stdout with checks
with silent():
numpy_blas = numpy_sys.get_info(user_blas)
extension['libraries'].extend(numpy_blas.get('libraries', []))
extension['library_dirs'].extend(
numpy_blas.get('library_dirs', []))
# `numpy.distutils` not present for Python >= 3.12
except ImportError:
extension["libraries"].append(user_blas)
extension['define_macros'].append('PYTHRAN_BLAS_{}'.format(user_blas.upper()))
extension["libraries"].append(user_blas)
extension['define_macros'].append('PYTHRAN_BLAS_{}'.format(user_blas.upper()))


# final macro normalization
Expand Down

0 comments on commit d63b00b

Please sign in to comment.