From 4bec5fc93af499aaa4d2564c05cbb313a1625167 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Tue, 28 Nov 2023 19:57:16 -0800 Subject: [PATCH] Retag wheels to be `cpXY` --- ci/build_wheel.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/build_wheel.sh b/ci/build_wheel.sh index a39ebf502..d58465251 100755 --- a/ci/build_wheel.sh +++ b/ci/build_wheel.sh @@ -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/*