summaryrefslogtreecommitdiff
path: root/numpy/f2py
diff options
context:
space:
mode:
authorMatthew Brett <matthew.brett@gmail.com>2017-02-21 23:04:45 +0000
committerMatthew Brett <matthew.brett@gmail.com>2017-02-21 23:04:45 +0000
commit1e7a01bf765986fc59fd3c8a218dc059bf5a224e (patch)
treea9bfb98b67c674787f1b5f9cbeafc7c53c1930de /numpy/f2py
parent2aabeafb97bea4e1bfa29d946fbf31e1104e7ae0 (diff)
downloadnumpy-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-xnumpy/f2py/crackfortran.py3
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: