Skip to content

Commit

Permalink
Add python3 -m before cibuildwheel in build_wheels.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
KolinGuo committed Jan 16, 2024
1 parent 1d27108 commit 4d90b1c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions dev/build_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 4d90b1c

Please sign in to comment.