diff options
author | Pauli Virtanen <pav@iki.fi> | 2020-01-01 21:28:48 +0200 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2020-01-01 21:43:12 +0200 |
commit | 0159b84141a827e9e96df7ddf25c32c6df8dfb6d (patch) | |
tree | f69a2574d612a2c9661215b4734ee4e7af66e29d /numpy/linalg/setup.py | |
parent | daa63afdbaf59a281b680668c2fdbaac1ca49f04 (diff) | |
download | numpy-0159b84141a827e9e96df7ddf25c32c6df8dfb6d.tar.gz |
ENH: build fallback lapack_lite with 64-bit integers on 64-bit platforms
Build the lapack fallback library (used when no LAPACK installed) with
64-bit integer size when building on a 64-bit platform.
Diffstat (limited to 'numpy/linalg/setup.py')
-rw-r--r-- | numpy/linalg/setup.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/linalg/setup.py b/numpy/linalg/setup.py index 6315a34b4..bfc0203d2 100644 --- a/numpy/linalg/setup.py +++ b/numpy/linalg/setup.py @@ -31,6 +31,10 @@ def configuration(parent_package='', top_path=None): else: lapack_info = get_info('lapack_opt', 0) # and {} + if not lapack_info and sys.maxsize > 2**32: + # Build lapack-lite in 64-bit integer mode + config.add_define_macros([('HAVE_BLAS_ILP64', None)]) + def get_lapack_lite_sources(ext, build_dir): if not lapack_info: print("### Warning: Using unoptimized lapack ###") |