File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,15 @@ mkl_may_use_sdl = not use_ilp64 and _threading_opt in ['auto', 'iomp']
89
89
90
90
# Note that we can only use a BLAS which provides a CBLAS interface. So disable
91
91
# BLAS completely if CBLAS is not found.
92
+
93
+ # First try scipy-openblas, and if found don't look for cblas or lapack, we
94
+ # know what's inside the scipy-openblas wheels already.
95
+ if blas_name == ' openblas' or blas_name == ' auto'
96
+ blas = dependency (' scipy-openblas' , required : false )
97
+ if blas.found()
98
+ blas_name = ' scipy-openblas'
99
+ endif
100
+ endif
92
101
if blas_name == ' auto'
93
102
foreach _name : get_option (' blas-order' )
94
103
if _name == ' mkl'
158
167
endif
159
168
endif
160
169
161
- if ' mkl' in blas.name() or blas.name() == ' accelerate'
170
+ if ' mkl' in blas.name() or blas.name() == ' accelerate' or blas_name == ' scipy-openblas '
162
171
# For these libraries we know that they contain LAPACK, and it's desirable to
163
172
# use that - no need to run the full detection twice.
164
173
lapack = blas
You can’t perform that action at this time.
0 commit comments