spack/var/spack/repos/builtin/packages/py-numpy/check_executables3.patch
Tomoki, Karatsu b6e2e731bc
py-numpy: check if execute commands are feasible. (#21507)
* py-numpy: check if execute commands are feasible.

* Apply patch to all versions.
2021-02-14 12:22:48 -06:00

17 lines
786 B
Diff

--- spack-src/numpy/distutils/fcompiler/__init__.py.orig 2020-06-02 17:24:58.000000000 +0900
+++ spack-src/numpy/distutils/fcompiler/__init__.py 2021-02-12 17:33:11.483728471 +0900
@@ -320,7 +320,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 = []