use filter_file instead of patch
This commit is contained in:
parent
bd1cd83d71
commit
689dbb8fb6
@ -1,11 +0,0 @@
|
||||
--- a/numpy/distutils/fcompiler/gnu.py.orig 2015-08-17 11:31:52.000000000 -0700
|
||||
+++ b/numpy/distutils/fcompiler/gnu.py 2015-08-17 11:32:48.000000000 -0700
|
||||
@@ -252,7 +252,7 @@
|
||||
# GNU Fortran 95 (GCC) 4.2.0 20060218 (experimental)
|
||||
# GNU Fortran (GCC) 4.3.0 20070316 (experimental)
|
||||
|
||||
- possible_executables = ['gfortran', 'f95']
|
||||
+ possible_executables = ['fc', 'f95']
|
||||
executables = {
|
||||
'version_cmd' : ["<F90>", "--version"],
|
||||
'compiler_f77' : [None, "-Wall", "-g", "-ffixed-form",
|
@ -8,13 +8,18 @@ class PyNumpy(Package):
|
||||
version('1.9.1', '78842b73560ec378142665e712ae4ad9')
|
||||
version('1.9.2', 'a1ed53432dbcd256398898d35bc8e645')
|
||||
|
||||
patch('gnu_fcompiler.patch', when='%gcc')
|
||||
|
||||
extends('python')
|
||||
depends_on('py-nose')
|
||||
depends_on('netlib-blas+fpic')
|
||||
depends_on('netlib-lapack+shared')
|
||||
|
||||
def patch(self):
|
||||
filter_file(
|
||||
"possible_executables = \['(gfortran|g77|ifort|efl)",
|
||||
"possible_executables = ['fc",
|
||||
"numpy/distutils/fcompiler/gnu.py",
|
||||
"numpy/distutils/fcompiler/intel.py")
|
||||
|
||||
def install(self, spec, prefix):
|
||||
with open('site.cfg', 'w') as f:
|
||||
f.write('[DEFAULT]\n')
|
||||
|
Loading…
Reference in New Issue
Block a user