From 4d90b1cf0256c524965577ca37150ca89ea3b77e Mon Sep 17 00:00:00 2001 From: Kolin Guo Date: Mon, 15 Jan 2024 20:58:09 -0800 Subject: [PATCH] Add python3 -m before cibuildwheel in build_wheels.sh --- dev/build_wheels.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dev/build_wheels.sh b/dev/build_wheels.sh index 054e1ede..26a9c895 100644 --- a/dev/build_wheels.sh +++ b/dev/build_wheels.sh @@ -2,6 +2,11 @@ set -eEu -o pipefail +# Move to the repo folder, so later commands can use relative paths +SCRIPT_PATH=$(readlink -f "$0") +REPO_DIR=$(dirname "$(dirname "$SCRIPT_PATH")") +cd "$REPO_DIR" + PY_VERSION= while (("$#")); do case "$1" in @@ -31,7 +36,7 @@ if ! command -v "cibuildwheel" &>/dev/null; then fi if [ "$PY_VERSION" == "all" ]; then - cibuildwheel --platform linux + python3 -m cibuildwheel --platform linux else - CIBW_BUILD="cp${PY_VERSION}-*" cibuildwheel --platform linux + CIBW_BUILD="cp${PY_VERSION}-*" python3 -m cibuildwheel --platform linux fi