summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-numpy/check_executables5.patch
blob: 4ae9fe4009761e91cf138cc088be2887b92d7bf9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- spack-src/numpy/distutils/fcompiler/__init__.py.orig	2017-09-29 13:31:46.000000000 +0900
+++ spack-src/numpy/distutils/fcompiler/__init__.py	2021-02-12 18:06:12.001479417 +0900
@@ -322,7 +322,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 = []