summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-numpy/check_executables4.patch
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/py-numpy/check_executables4.patch')
-rw-r--r--var/spack/repos/builtin/packages/py-numpy/check_executables4.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-numpy/check_executables4.patch b/var/spack/repos/builtin/packages/py-numpy/check_executables4.patch
new file mode 100644
index 0000000000..b553acb46f
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-numpy/check_executables4.patch
@@ -0,0 +1,16 @@
+--- spack-src/numpy/distutils/fcompiler/__init__.py.orig 2018-11-03 10:49:58.000000000 +0900
++++ spack-src/numpy/distutils/fcompiler/__init__.py 2021-02-12 17:57:50.632263931 +0900
+@@ -318,7 +318,12 @@
+ if not exe_from_environ:
+ possibles = [f90, f77] + self.possible_executables
+ else:
+- possibles = [exe_from_environ] + self.possible_executables
++ matching_executables = []
++ for e in exe_from_environ:
++ for p in self.possible_executables:
++ if p in e:
++ matching_executables.append(e)
++ possibles = [matching_executables] + self.possible_executables
+
+ seen = set()
+ unique_possibles = []