@@ -4,9 +4,6 @@ PROJECT_DIR="${1:-$PWD}"
4
4
NUMPY_SRC_DIR=" ${1:- $PWD } /numpy-src"
5
5
6
6
7
- # remove any cruft from a previous run
8
- rm -rf build
9
-
10
7
# Update license
11
8
echo " " >> $NUMPY_SRC_DIR /LICENSE.txt
12
9
echo " ----" >> $NUMPY_SRC_DIR /LICENSE.txt
@@ -28,29 +25,25 @@ elif [ -z $INSTALL_OPENBLAS ]; then
28
25
export INSTALL_OPENBLAS=true
29
26
fi
30
27
31
- # Install Openblas from scipy-openblas64
28
+ # Install OpenBLAS from scipy-openblas64
32
29
if [[ " $INSTALL_OPENBLAS " = " true" ]] ; then
33
- # by default, use scipy-openblas64
30
+ # By default, use scipy-openblas64
31
+ # On 32-bit platforms and on win-arm64, use scipy-openblas32
34
32
OPENBLAS=openblas64
35
- # Possible values for RUNNER_ARCH in github are
36
- # X86, X64, ARM, or ARM64
37
- # TODO: should we detect a missing RUNNER_ARCH and use platform.machine()
38
- # when wheel build is run outside github?
39
- # On 32-bit platforms, use scipy_openblas32
40
- # On win-arm64 use scipy_openblas32
33
+ # Possible values for RUNNER_ARCH in GitHub Actions are: X86, X64, ARM, or ARM64
41
34
if [[ $RUNNER_ARCH == " X86" || $RUNNER_ARCH == " ARM" ]] ; then
42
35
OPENBLAS=openblas32
43
36
elif [[ $RUNNER_ARCH == " ARM64" && $RUNNER_OS == " Windows" ]] ; then
44
37
OPENBLAS=openblas32
45
38
fi
46
- echo PKG_CONFIG_PATH is $PKG_CONFIG_PATH , OPENBLAS is ${OPENBLAS}
47
39
PKG_CONFIG_PATH=$PROJECT_DIR /.openblas
40
+ echo PKG_CONFIG_PATH is $PKG_CONFIG_PATH , OPENBLAS is ${OPENBLAS}
48
41
rm -rf $PKG_CONFIG_PATH
49
42
mkdir -p $PKG_CONFIG_PATH
50
43
python -m pip install -r $PROJECT_DIR /requirements/openblas_requirements.txt
51
44
python -c " import scipy_${OPENBLAS} ; print(scipy_${OPENBLAS} .get_pkg_config())" > $PKG_CONFIG_PATH /scipy-openblas.pc
52
45
# Copy the shared objects to a path under $PKG_CONFIG_PATH, the build
53
- # will point $LD_LIBRARY_PATH there and then auditwheel/delocate-wheel will
46
+ # will point $LD_LIBRARY_PATH there and then auditwheel/delocate will
54
47
# pull these into the wheel. Use python to avoid windows/posix problems
55
48
python << EOF
56
49
import os, scipy_${OPENBLAS} , shutil
@@ -62,7 +55,9 @@ if os.path.exists(srcdir): # macosx delocate
62
55
EOF
63
56
# pkg-config scipy-openblas --print-provides
64
57
fi
58
+
59
+ # cibuildwheel doesn't install delvewheel by default (it does install
60
+ # auditwheel on Linux and delocate on macOS)
65
61
if [[ $RUNNER_OS == " Windows" ]]; then
66
- # delvewheel is the equivalent of delocate/auditwheel for windows.
67
- python -m pip install delvewheel wheel
62
+ python -m pip install delvewheel
68
63
fi
0 commit comments