Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit c36e605

Browse files
committed
try using numpy/tools/openblas_support
1 parent 1adab1e commit c36e605

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

config.sh

+4-13
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,10 @@ function build_wheel {
1414
}
1515

1616
function build_libs {
17-
local plat=${1:-$PLAT}
18-
# Force 64-bit OpenBLAS library for macOS intel (dual arch)
19-
# builds. For these builds, we pretend to be dual arch, but in
20-
# fact we're only using the 64-bit build of OpenBLAS
21-
if [ -n $IS_OSX ] && [ $plat == intel ]; then
22-
plat=x86_64
23-
fi
24-
local tar_fname=$(get_gf_lib "openblas-${OPENBLAS_VERSION}" "$plat")
25-
local tar_path=$(abspath $tar_fname)
26-
# Sudo needed for macOS
27-
local use_sudo=""
28-
[ -n "$IS_OSX" ] && use_sudo="sudo"
29-
(cd / && $use_sudo tar zxf $tar_path)
17+
# Use the same incantation as numpy/tools/travis-before-install.sh
18+
target=$(python numpy/tools/openblas_support.py)
19+
$use_sudo cp -r $target/lib/* /usr/lib
20+
$use_sudo cp $target/include/* /usr/include
3021
}
3122

3223
function get_test_cmd {

numpy

0 commit comments

Comments
 (0)