File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -214,8 +214,24 @@ jobs:
214214 shell : bash
215215 run : |
216216 cd sdk/python
217- # Repair the wheel to make it manylinux compatible
218- auditwheel repair dist/*.whl --plat manylinux_2_17_x86_64 -w dist/
217+ # Check what manylinux tags are compatible with this wheel
218+ echo "Analyzing wheel compatibility..."
219+ auditwheel show dist/*.whl || true
220+
221+ # Try to repair with a newer manylinux tag that matches ubuntu-latest (22.04 uses glibc 2.35)
222+ # manylinux_2_35 should work for ubuntu 22.04+, RHEL 9+, Debian 12+
223+ if auditwheel repair dist/*.whl --plat manylinux_2_35_x86_64 -w dist/ 2>/dev/null; then
224+ echo "✓ Created manylinux_2_35 wheel"
225+ elif auditwheel repair dist/*.whl --plat manylinux_2_31_x86_64 -w dist/ 2>/dev/null; then
226+ echo "✓ Created manylinux_2_31 wheel"
227+ elif auditwheel repair dist/*.whl --plat manylinux_2_28_x86_64 -w dist/ 2>/dev/null; then
228+ echo "✓ Created manylinux_2_28 wheel"
229+ else
230+ echo "⚠️ Could not repair to manylinux, keeping original linux wheel"
231+ echo "Note: PyPI may not accept this wheel"
232+ exit 0
233+ fi
234+
219235 # Remove the original linux_x86_64 wheel
220236 rm -f dist/*-linux_x86_64.whl
221237
You can’t perform that action at this time.
0 commit comments