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

Commit 90ef810

Browse files
committed
Download openblas instead of building it each time
1 parent 260c2f7 commit 90ef810

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

config.sh

+8-5
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,18 @@ function pre_build {
66
# Runs in the root directory of this repository.
77
if [ -n "$IS_OSX" ]; then
88
sudo installer -pkg archives/gfortran-4.2.3.pkg -target /
9-
else
10-
build_openblas > /dev/null
11-
# Force scipy to use OpenBLAS regardless of what numpy uses
12-
cat << EOF > $HOME/site.cfg
9+
return
10+
fi
11+
# Rackspace builds of openblas
12+
local lib_url=https://d9a97980b71d47cde94d-aae005c4999d7244ac63632f8b80e089.ssl.cf2.rackcdn.com
13+
local lib_tgz="openblas_0.2.18-$(get_platform).tgz"
14+
(cd / && curl -LO $lib_url/${lib_tgz} && tar zxf $lib_tgz)
15+
# Force scipy to use OpenBLAS regardless of what numpy uses
16+
cat << EOF > $HOME/site.cfg
1317
[openblas]
1418
library_dirs = /usr/local/lib
1519
include_dirs = /usr/local/include
1620
EOF
17-
fi
1821
}
1922

2023
function run_tests {

0 commit comments

Comments
 (0)