It is a dependency back to our Python changes that makes our NumPy changes less palatable from an upstreaming perspective. Really, we want to know if Python has been built with GCC, and that is exactly what 'GCC' in sys.version determines.
12 lines
627 B
Diff
12 lines
627 B
Diff
--- numpy-1.10.2/numpy/distutils/fcompiler/gnu.py.orig 2014-08-28 15:49:10.742000000 +0400
|
|
+++ numpy-1.10.2/numpy/distutils/fcompiler/gnu.py 2014-08-28 15:50:44.903600000 +0400
|
|
@@ -60,7 +60,7 @@
|
|
m = re.search(r'GNU Fortran\s+95.*?([0-9-.]+)', version_string)
|
|
if m:
|
|
return ('gfortran', m.group(1))
|
|
- m = re.search(r'GNU Fortran.*?\-?([0-9-.]+)', version_string)
|
|
+ m = re.search(r'GNU Fortran.*?\-?(\d*(?:\.\d+)+)', version_string)
|
|
if m:
|
|
v = m.group(1)
|
|
if v.startswith('0') or v.startswith('2') or v.startswith('3'):
|