Skip to content

Commit e430076

Browse files
committed
Manually tag x86_64_v2 wheel
1 parent f731d59 commit e430076

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ jobs:
8181
runner: ubuntu-latest
8282
manylinux_image: quay.io/pypa/manylinux_2_34_x86_64
8383
v_asset: v_linux.zip
84-
auditwheel_plat: manylinux_2_34_x86_64_v2
84+
repair: rename-x86-64-v2
8585
- os: linux
8686
platform: aarch64
8787
runner: ubuntu-22.04-arm
8888
manylinux_image: quay.io/pypa/manylinux_2_34_aarch64
8989
v_asset: v_linux_arm64.zip
90-
auditwheel_plat: manylinux_2_34_aarch64
90+
repair: auditwheel
9191
- os: macos
9292
platform: arm64
9393
runner: macos-latest
@@ -165,7 +165,7 @@ jobs:
165165
docker run --rm \
166166
-e V_VERSION="${V_VERSION}" \
167167
-e V_ASSET="${{ matrix.v_asset }}" \
168-
-e AUDITWHEEL_PLAT="${{ matrix.auditwheel_plat }}" \
168+
-e REPAIR_MODE="${{ matrix.repair }}" \
169169
-e HOST_UID="$(id -u)" \
170170
-e HOST_GID="$(id -g)" \
171171
-v "${GITHUB_WORKSPACE}:/io" \
@@ -179,7 +179,16 @@ jobs:
179179
v version
180180
rm -rf wheelhouse wheelhouse-raw
181181
/opt/python/cp312-cp312/bin/python -m pip wheel . --no-deps --no-build-isolation --wheel-dir wheelhouse-raw
182-
auditwheel repair --plat "${AUDITWHEEL_PLAT}" wheelhouse-raw/*.whl --wheel-dir wheelhouse
182+
mkdir -p wheelhouse
183+
if [ "${REPAIR_MODE}" = "rename-x86-64-v2" ]; then
184+
for wheel in wheelhouse-raw/*.whl; do
185+
renamed="${wheel##*/}"
186+
renamed="${renamed/manylinux_2_34_x86_64/manylinux_2_34_x86_64_v2}"
187+
cp "$wheel" "wheelhouse/$renamed"
188+
done
189+
else
190+
auditwheel repair --plat manylinux_2_34_aarch64 wheelhouse-raw/*.whl --wheel-dir wheelhouse
191+
fi
183192
chown -R "${HOST_UID}:${HOST_GID}" wheelhouse wheelhouse-raw
184193
'
185194

0 commit comments

Comments
 (0)