Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

Commit 1f71ecb

Browse files
committed
MAINT: use openblas_support.py for Travis
* Appveyor CI wheel builds already use `openblas_support.py`; use the same script for `OpenBLAS` dependency handling in Travis CI for wheel builds * this approach is based on the one described by @mattip for NumPy wheels in the cognate issue, except that for SciPy we should not need `urllib3` because of our different approaches to file downloading in `openblas_support.py`
1 parent 30d508e commit 1f71ecb

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

Diff for: config.sh

+5-6
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@ function build_wheel {
1717
}
1818

1919
function build_libs {
20-
local plat=${1:-$PLAT}
21-
local tar_path=$(abspath $(get_gf_lib "openblas-${OPENBLAS_VERSION}" "$plat"))
22-
# Sudo needed for macOS
23-
local use_sudo=""
24-
[ -n "$IS_OSX" ] && use_sudo="sudo"
25-
(cd / && $use_sudo tar zxf $tar_path)
20+
PYTHON_EXE=`which python`
21+
$PYTHON_EXE -c"import platform; print('platform.uname().machine', platform.uname().machine)"
22+
basedir=$($PYTHON_EXE scipy/tools/openblas_support.py)
23+
$use_sudo cp -r $basedir/lib/* /usr/local/lib
24+
$use_sudo cp $basedir/include/* /usr/local/include
2625
}
2726

2827
function set_arch {

Diff for: env_vars.sh

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Environment variables for build
2-
OPENBLAS_VERSION="v0.3.7"
32
MACOSX_DEPLOYMENT_TARGET=10.9
43

54
# Enable Python fault handler on Pythons >= 3.3.

0 commit comments

Comments
 (0)