summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorHood Chatham <roberthoodchatham@gmail.com>2022-06-12 14:35:00 -0700
committerHood Chatham <roberthoodchatham@gmail.com>2022-06-12 14:35:00 -0700
commitffcaa3f783af53d706ffe001add323c938dfd78e (patch)
tree39281188d531000ee5c4e4b5942256dbc42b7f31 /numpy
parent7a85f1f6f2166b69b4199c21b91d9634a703b452 (diff)
downloadnumpy-ffcaa3f783af53d706ffe001add323c938dfd78e.tar.gz
Update comment according to seberg's review
Diffstat (limited to 'numpy')
-rw-r--r--numpy/linalg/setup.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/linalg/setup.py b/numpy/linalg/setup.py
index 66c5fc5b8..1c4e1295e 100644
--- a/numpy/linalg/setup.py
+++ b/numpy/linalg/setup.py
@@ -42,7 +42,9 @@ def configuration(parent_package='', top_path=None):
size_t_size = sysconfig.get_config_var("SIZEOF_SIZE_T")
if size_t_size:
maxsize = 2**(size_t_size - 1) - 1
- else: # handle windows
+ else:
+ # We prefer using sysconfig as it allows cross-compilation
+ # but the information may be missing (e.g. on windows).
maxsize = sys.maxsize
if maxsize > 2**32:
# Build lapack-lite in 64-bit integer mode.