File: numpy-1.0.4-gnu.py.patch

package info (click to toggle)
gpaw 1.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 14,328 kB
  • sloc: python: 111,596; ansic: 16,082; sh: 1,230; csh: 139; makefile: 56
file content (44 lines) | stat: -rw-r--r-- 1,642 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
--- numpy-1.0.4.orig/numpy/distutils/fcompiler/gnu.py	2007-11-07 16:05:14.000000000 -0600
+++ numpy-1.0.4/numpy/distutils/fcompiler/gnu.py	2008-04-15 03:48:07.936557992 -0500
@@ -22,7 +22,7 @@
             return None
         m = re.match(r'GNU Fortran\s+95.*?([0-9-.]+)', version_string)
         if m:
-            return ('gfortran', m.group(1))
+            return ('mpif77', m.group(1))
         m = re.match(r'GNU Fortran.*?([0-9-.]+)', version_string)
         if m:
             v = m.group(1)
@@ -32,7 +32,7 @@
             else:
                 # at some point in the 4.x series, the ' 95' was dropped
                 # from the version string
-                return ('gfortran', v)
+                return ('mpif77', v)
 
     def version_match(self, version_string):
         v = self.gnu_version_match(version_string)
@@ -278,12 +278,12 @@
 
 class Gnu95FCompiler(GnuFCompiler):
     compiler_type = 'gnu95'
-    compiler_aliases = ('gfortran',)
+    compiler_aliases = ('mpif77',)
     description = 'GNU Fortran 95 compiler'
 
     def version_match(self, version_string):
         v = self.gnu_version_match(version_string)
-        if not v or v[0] != 'gfortran':
+        if not v or v[0] != 'mpif77':
             return None
         return v[1]
 
@@ -295,7 +295,7 @@
     #       GNU Fortran 95 (GCC) 4.2.0 20060218 (experimental)
     #       GNU Fortran (GCC) 4.3.0 20070316 (experimental)
 
-    possible_executables = ['gfortran', 'f95']
+    possible_executables = ['mpif77', 'f95']
     executables = {
         'version_cmd'  : ["<F90>", "--version"],
         'compiler_f77' : [None, "-Wall", "-ffixed-form",