Skip to content

Commit

Permalink
Retag wheels to be cpXY
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed Nov 29, 2023
1 parent 8f2a96e commit 4bec5fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ci/build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ cd "${package_dir}"

python -m pip wheel . -w dist -vvv --no-deps --disable-pip-version-check

# Fix Python wheel tag to be restricted to CPython and version dependent
WHEEL_PYTHON_TAG=`python -c 'import sys; print("cp{0}{1}".format(*sys.version_info[:2]))'`
python -m wheel tags --remove --python-tag="${WHEEL_PYTHON_TAG}" --abi-tag="${WHEEL_PYTHON_TAG}" dist/*

mkdir -p final_dist
python -m auditwheel repair -w final_dist dist/*

Expand Down

0 comments on commit 4bec5fc

Please sign in to comment.