diff options
author | Matthew Brett <matthew.brett@gmail.com> | 2017-02-21 23:04:45 +0000 |
---|---|---|
committer | Matthew Brett <matthew.brett@gmail.com> | 2017-02-21 23:04:45 +0000 |
commit | 1e7a01bf765986fc59fd3c8a218dc059bf5a224e (patch) | |
tree | a9bfb98b67c674787f1b5f9cbeafc7c53c1930de /numpy/f2py | |
parent | 2aabeafb97bea4e1bfa29d946fbf31e1104e7ae0 (diff) | |
download | numpy-1e7a01bf765986fc59fd3c8a218dc059bf5a224e.tar.gz |
BUG: PPC64el machines are POWER for Fortran
Fix Fortran kind detection for PPC64el.
See: gh-3424.
Diffstat (limited to 'numpy/f2py')
-rwxr-xr-x | numpy/f2py/crackfortran.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py index e38e8e3fe..f738a9f00 100755 --- a/numpy/f2py/crackfortran.py +++ b/numpy/f2py/crackfortran.py @@ -2392,7 +2392,8 @@ def _selected_real_kind_func(p, r=0, radix=0): return 4 if p < 16: return 8 - if platform.machine().lower().startswith('power'): + machine = platform.machine().lower() + if machine.startswith('power') or machine.startswith('ppc64'): if p <= 20: return 16 else: |