diff options
author | Vladimir Pershin <pershin87@yandex.ru> | 2019-08-16 13:58:38 +0100 |
---|---|---|
committer | Vladimir Pershin <pershin87@yandex.ru> | 2019-08-16 13:58:38 +0100 |
commit | c81c7fa511502337f97b5190ab96910b31b68c54 (patch) | |
tree | 43d8c0ab3626a3ecdb0c2df939775bc769833d75 /numpy/random/setup.py | |
parent | cff02456fed4113924feef1d561e5e927aa2d86b (diff) | |
download | numpy-c81c7fa511502337f97b5190ab96910b31b68c54.tar.gz |
Fix bug in platform detection
Diffstat (limited to 'numpy/random/setup.py')
-rw-r--r-- | numpy/random/setup.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/random/setup.py b/numpy/random/setup.py index a1bf3b83c..a820d326e 100644 --- a/numpy/random/setup.py +++ b/numpy/random/setup.py @@ -49,8 +49,8 @@ def configuration(parent_package='', top_path=None): elif not is_msvc: # Some bit generators require c99 EXTRA_COMPILE_ARGS += ['-std=c99'] - INTEL_LIKE = any([val in k.lower() for k in platform.uname() - for val in ('x86', 'i686', 'i386', 'amd64')]) + INTEL_LIKE = any(arch in platform.machine() + for arch in ('x86', 'i686', 'i386', 'amd64')) if INTEL_LIKE: # Assumes GCC or GCC-like compiler EXTRA_COMPILE_ARGS += ['-msse2'] |