diff options
author | xoviat <49173759+xoviat@users.noreply.github.com> | 2020-11-10 09:51:39 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-10 09:51:39 -0600 |
commit | 972eb4dfd31571bf4b6d3d0f4575036b360d9975 (patch) | |
tree | 216f1433cb6a2984c0fbc21eea659dfe9f6069d9 | |
parent | a20eca25e9b492efedafea4b7c5d84692d869f7e (diff) | |
download | numpy-972eb4dfd31571bf4b6d3d0f4575036b360d9975.tar.gz |
BLD: compare platform.architecture() correctly
The function returns a tuple of values, of which we need to check the first.
Fixes #17489.
-rw-r--r-- | numpy/distutils/system_info.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py index c3bd6347c..cf4b1d945 100644 --- a/numpy/distutils/system_info.py +++ b/numpy/distutils/system_info.py @@ -290,7 +290,7 @@ if sys.platform == 'win32': vcpkg = shutil.which('vcpkg') if vcpkg: vcpkg_dir = os.path.dirname(vcpkg) - if platform.architecture() == '32bit': + if platform.architecture()[0] == '32bit': specifier = 'x86' else: specifier = 'x64' |