@@ -25,7 +25,7 @@ elif [ -z $INSTALL_OPENBLAS ]; then
25
25
export INSTALL_OPENBLAS=true
26
26
fi
27
27
28
- # Install OpenBLAS from scipy-openblas64
28
+ # Install OpenBLAS from scipy-openblas32|64
29
29
if [[ " $INSTALL_OPENBLAS " = " true" ]] ; then
30
30
# By default, use scipy-openblas64
31
31
# On 32-bit platforms and on win-arm64, use scipy-openblas32
@@ -42,10 +42,20 @@ if [[ "$INSTALL_OPENBLAS" = "true" ]] ; then
42
42
mkdir -p $PKG_CONFIG_PATH
43
43
python -m pip install -r $PROJECT_DIR /requirements/openblas_requirements.txt
44
44
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
45
56
fi
46
57
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
49
59
if [[ $RUNNER_OS == " Windows" ]]; then
50
- python -m pip install delvewheel
60
+ python -m pip install -r $PROJECT_DIR /requirements/delvewheel_requirements.txt
51
61
fi
0 commit comments