diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2019-08-20 12:30:43 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-20 12:30:43 -0600 |
commit | 810d31543d5743fb069848f019f5ca6cc3b677df (patch) | |
tree | bc877b9f68489b18a90130c39f8c8a6fbf6b0b1a /numpy | |
parent | 58295f25f592a62751096bbefd1b4cdaa21b6fed (diff) | |
parent | c81c7fa511502337f97b5190ab96910b31b68c54 (diff) | |
download | numpy-810d31543d5743fb069848f019f5ca6cc3b677df.tar.gz |
Merge pull request #14298 from 5ghz/cross_compile
BUG: Fix numpy.random bug in platform detection
Diffstat (limited to 'numpy')
-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'] |