File tree Expand file tree Collapse file tree 3 files changed +18
-7
lines changed Expand file tree Collapse file tree 3 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -106,10 +106,6 @@ matrix:
106
106
- MB_PYTHON_VERSION=3.9
107
107
- NP_BUILD_DEP="numpy==1.20"
108
108
- NP_TEST_DEP="numpy==1.20"
109
- # Numpy 1.20 rejects Accelerate as installation
110
- # option; disable this search.
111
- - NPY_BLAS_ORDER=""
112
- - NPY_LAPACK_ORDER=""
113
109
114
110
before_install :
115
111
- BUILD_DEPENDS="$NP_BUILD_DEP Cython nibabel sympy $SP_DEP"
Original file line number Diff line number Diff line change 1
1
# Define custom utilities
2
- # Test for OSX with [ -n "$IS_OSX " ]
2
+ # Test for OSX with [ -n "$IS_MACOS " ]
3
3
4
4
function pre_build {
5
- # Any stuff that you need to do before you start building the wheels
5
+ # Any stuff that you need to do before you start
6
+ # building the wheels.
6
7
# Runs in the root directory of this repository.
7
- :
8
+ # Accelerate error only on macOS
9
+ if [ -z " $IS_MACOS " ]; then return ; fi
10
+ # Only for Numpy >= 1.20
11
+ local np_ver=$( python -c ' import numpy; print(numpy.__version__)' )
12
+ if [ $( lex_ver $np_ver ) -lt $( lex_ver 1.20) ]; then
13
+ return
14
+ fi
15
+ # Just in case.
16
+ brew install openblas
17
+ cp site.cfg.openblas nipy/site.cfg
8
18
}
9
19
10
20
function run_tests {
Original file line number Diff line number Diff line change
1
+ [openblas]
2
+ libraries = openblas
3
+ library_dirs = /usr/local/lib
4
+ include_dirs = /usr/local/include
5
+ runtime_library_dirs = /usr/local/lib
You can’t perform that action at this time.
0 commit comments