diff options
author | Hood Chatham <roberthoodchatham@gmail.com> | 2022-06-12 14:16:42 -0700 |
---|---|---|
committer | Hood Chatham <roberthoodchatham@gmail.com> | 2022-06-12 14:16:42 -0700 |
commit | 98bd9fdfde611b26efeaf6ece1840edbcc81862a (patch) | |
tree | 01c7fccd2dc9eb048ee67a571cdc67541cce9b65 | |
parent | 952058e96d093ac76ceaff1356519ce1f89c53f0 (diff) | |
download | numpy-98bd9fdfde611b26efeaf6ece1840edbcc81862a.tar.gz |
Handle windows
-rw-r--r-- | numpy/linalg/setup.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/numpy/linalg/setup.py b/numpy/linalg/setup.py index b11268f10..3d90f51a0 100644 --- a/numpy/linalg/setup.py +++ b/numpy/linalg/setup.py @@ -39,7 +39,12 @@ def configuration(parent_package='', top_path=None): class numpy_linalg_lapack_lite(system_info): def calc_info(self): info = {'language': 'c'} - if sysconfig.get_config_var("SIZEOF_SIZE_T") >= 8: + size_t_size = sysconfig.get_config_var("SIZEOF_SIZE_T") + if size_t_size: + maxsize = 2**(size_t_size - 1) - 1 + else: # handle windows + maxsize = sys.maxsize + if maxsize > 2**32: # Build lapack-lite in 64-bit integer mode. # The suffix is arbitrary (lapack_lite symbols follow it), # but use the "64_" convention here. |