@@ -25,7 +25,7 @@ elif [ -z $INSTALL_OPENBLAS ]; then
2525 export INSTALL_OPENBLAS=true
2626fi
2727
28- # Install OpenBLAS from scipy-openblas64
28+ # Install OpenBLAS from scipy-openblas32|64
2929if [[ " $INSTALL_OPENBLAS " = " true" ]] ; then
3030 # By default, use scipy-openblas64
3131 # On 32-bit platforms and on win-arm64, use scipy-openblas32
@@ -42,10 +42,20 @@ if [[ "$INSTALL_OPENBLAS" = "true" ]] ; then
4242 mkdir -p $PKG_CONFIG_PATH
4343 python -m pip install -r $PROJECT_DIR /requirements/openblas_requirements.txt
4444 python -c " import scipy_${OPENBLAS} ; print(scipy_${OPENBLAS} .get_pkg_config())" > $PKG_CONFIG_PATH /scipy-openblas.pc
45+
46+ # Copy scipy-openblas DLL's to a fixed location so we can point delvewheel
47+ # at it in `repair_windows.sh` (needed only on Windows because of the lack
48+ # of RPATH support).
49+ if [[ $RUNNER_OS == " Windows" ]]; then
50+ python << EOF
51+ import os, scipy_${OPENBLAS} , shutil
52+ srcdir = os.path.join(os.path.dirname(scipy_${OPENBLAS} .__file__), "lib")
53+ shutil.copytree(srcdir, os.path.join("$PKG_CONFIG_PATH ", "lib"))
54+ EOF
55+ fi
4556fi
4657
47- # cibuildwheel doesn't install delvewheel by default (it does install
48- # auditwheel on Linux and delocate on macOS)
58+ # cibuildwheel doesn't install delvewheel by default
4959if [[ $RUNNER_OS == " Windows" ]]; then
50- python -m pip install delvewheel
60+ python -m pip install -r $PROJECT_DIR /requirements/delvewheel_requirements.txt
5161fi
0 commit comments