Skip to content

Commit 3ec72f9

Browse files
committed
build: add auditwheel repair to convert wheels to manylinux format
- Run auditwheel repair after building wheel to convert linux_x86_64 to manylinux format, matching the CI/CD workflow output - Remove original linux wheel after successful manylinux conversion This ensures local builds match GitHub Actions wheel output. Note: This work was completed with AI assistance (Claude Code).
1 parent d580986 commit 3ec72f9

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

justfile

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,8 +1120,25 @@ build venv="": (install-build-tools venv)
11201120
VENV_PATH="{{ VENV_DIR }}/${VENV_NAME}"
11211121
VENV_PYTHON=$(just --quiet _get-venv-python "${VENV_NAME}")
11221122
echo "==> Building wheel package..."
1123-
# Set environment variable for NVX acceleration (only affects wheels)
1123+
1124+
# Build the wheel with NVX acceleration
11241125
AUTOBAHN_USE_NVX=1 ${VENV_PYTHON} -m build --wheel
1126+
1127+
# Convert linux wheels to manylinux format using auditwheel
1128+
if [ -x "${VENV_PATH}/bin/auditwheel" ]; then
1129+
for wheel in dist/*-linux_*.whl; do
1130+
if [ -f "$wheel" ]; then
1131+
echo "==> Converting $(basename $wheel) to manylinux format..."
1132+
"${VENV_PATH}/bin/auditwheel" show "$wheel"
1133+
"${VENV_PATH}/bin/auditwheel" repair "$wheel" -w dist/
1134+
# Remove the original linux wheel after successful repair
1135+
rm "$wheel"
1136+
fi
1137+
done
1138+
else
1139+
echo "WARNING: auditwheel not available, skipping manylinux conversion"
1140+
fi
1141+
11251142
ls -la dist/
11261143

11271144
# Build source distribution only (no wheels, no NVX flag needed)

0 commit comments

Comments
 (0)