@@ -36,12 +36,16 @@ if [[ "$INSTALL_OPENBLAS" = "true" ]] ; then
36
36
elif [[ $RUNNER_ARCH == " ARM64" && $RUNNER_OS == " Windows" ]] ; then
37
37
OPENBLAS=openblas32
38
38
fi
39
- PKG_CONFIG_PATH=$PROJECT_DIR /.openblas
40
- echo PKG_CONFIG_PATH is $PKG_CONFIG_PATH , OPENBLAS is ${OPENBLAS}
41
- rm -rf $PKG_CONFIG_PATH
42
- mkdir -p $PKG_CONFIG_PATH
39
+
40
+ # The PKG_CONFIG_PATH environment variable will be pointed to this path in
41
+ # cibuildwheel.toml and .github/workflows/wheels.yml. Note that
42
+ # `pkgconf_path` here is only a bash variable local to this file.
43
+ pkgconf_path=$PROJECT_DIR /.openblas
44
+ echo pkgconf_path is $pkgconf_path , OPENBLAS is ${OPENBLAS}
45
+ rm -rf $pkgconf_path
46
+ mkdir -p $pkgconf_path
43
47
python -m pip install -r $PROJECT_DIR /requirements/openblas_requirements.txt
44
- python -c " import scipy_${OPENBLAS} ; print(scipy_${OPENBLAS} .get_pkg_config())" > $PKG_CONFIG_PATH /scipy-openblas.pc
48
+ python -c " import scipy_${OPENBLAS} ; print(scipy_${OPENBLAS} .get_pkg_config())" > $pkgconf_path /scipy-openblas.pc
45
49
46
50
# Copy scipy-openblas DLL's to a fixed location so we can point delvewheel
47
51
# at it in `repair_windows.sh` (needed only on Windows because of the lack
@@ -50,7 +54,7 @@ if [[ "$INSTALL_OPENBLAS" = "true" ]] ; then
50
54
python << EOF
51
55
import os, scipy_${OPENBLAS} , shutil
52
56
srcdir = os.path.join(os.path.dirname(scipy_${OPENBLAS} .__file__), "lib")
53
- shutil.copytree(srcdir, os.path.join("$PKG_CONFIG_PATH ", "lib"))
57
+ shutil.copytree(srcdir, os.path.join("$pkgconf_path ", "lib"))
54
58
EOF
55
59
fi
56
60
fi
0 commit comments