diff options
author | Pauli Virtanen <pav@iki.fi> | 2019-11-29 23:04:29 +0200 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2019-11-29 23:20:57 +0200 |
commit | 33a2fcb4aebba8f80fdf12a7ecef879a3aaa0e63 (patch) | |
tree | 0bbfc6b94a486b1b8554867966d70e59edc734af /numpy/core/setup.py | |
parent | 52ce77f6655b37c86def239efd28f2225887d1c8 (diff) | |
download | numpy-33a2fcb4aebba8f80fdf12a7ecef879a3aaa0e63.tar.gz |
ENH: core: link only against blas64_/lapack64_ when BLAS64_ set
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r-- | numpy/core/setup.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 2ecd2616f..5bbb1c622 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -756,19 +756,15 @@ def configuration(parent_package='',top_path=None): join('src', 'common', 'numpyos.c'), ] - blas_info = get_info('blas_opt', 0) - if is_npy_use_blas64_(): - blas64__info = get_info('blas64__opt', 2) + blas_info = get_info('blas64__opt', 2) + have_blas = blas_info and ('HAVE_CBLAS64_', None) in blas_info.get('define_macros', []) else: - blas64__info = {} - - have_blas = blas_info and ('HAVE_CBLAS', None) in blas_info.get('define_macros', []) - have_blas64_ = blas64__info and ('HAVE_CBLAS64_', None) in blas64__info.get('define_macros', []) + blas_info = get_info('blas_opt', 0) + have_blas = blas_info and ('HAVE_CBLAS', None) in blas_info.get('define_macros', []) - if have_blas or have_blas64_: + if have_blas: extra_info = blas_info - dict_append(blas_info, **blas64__info) # These files are also in MANIFEST.in so that they are always in # the source distribution independently of HAVE_CBLAS. common_src.extend([join('src', 'common', 'cblasfuncs.c'), |