@@ -4,9 +4,6 @@ PROJECT_DIR="${1:-$PWD}"
44NUMPY_SRC_DIR=" ${1:- $PWD } /numpy-src"
55
66
7- # remove any cruft from a previous run
8- rm -rf build
9-
107# Update license
118echo " " >> $NUMPY_SRC_DIR /LICENSE.txt
129echo " ----" >> $NUMPY_SRC_DIR /LICENSE.txt
@@ -28,29 +25,25 @@ elif [ -z $INSTALL_OPENBLAS ]; then
2825 export INSTALL_OPENBLAS=true
2926fi
3027
31- # Install Openblas from scipy-openblas64
28+ # Install OpenBLAS from scipy-openblas64
3229if [[ " $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
3432 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
4134 if [[ $RUNNER_ARCH == " X86" || $RUNNER_ARCH == " ARM" ]] ; then
4235 OPENBLAS=openblas32
4336 elif [[ $RUNNER_ARCH == " ARM64" && $RUNNER_OS == " Windows" ]] ; then
4437 OPENBLAS=openblas32
4538 fi
46- echo PKG_CONFIG_PATH is $PKG_CONFIG_PATH , OPENBLAS is ${OPENBLAS}
4739 PKG_CONFIG_PATH=$PROJECT_DIR /.openblas
40+ echo PKG_CONFIG_PATH is $PKG_CONFIG_PATH , OPENBLAS is ${OPENBLAS}
4841 rm -rf $PKG_CONFIG_PATH
4942 mkdir -p $PKG_CONFIG_PATH
5043 python -m pip install -r $PROJECT_DIR /requirements/openblas_requirements.txt
5144 python -c " import scipy_${OPENBLAS} ; print(scipy_${OPENBLAS} .get_pkg_config())" > $PKG_CONFIG_PATH /scipy-openblas.pc
5245 # 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
5447 # pull these into the wheel. Use python to avoid windows/posix problems
5548 python << EOF
5649import os, scipy_${OPENBLAS} , shutil
@@ -62,7 +55,9 @@ if os.path.exists(srcdir): # macosx delocate
6255EOF
6356 # pkg-config scipy-openblas --print-provides
6457fi
58+
59+ # cibuildwheel doesn't install delvewheel by default (it does install
60+ # auditwheel on Linux and delocate on macOS)
6561if [[ $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
6863fi
0 commit comments