From d84c530854c7e0c47ce2b0ab3fac87cb015509d4 Mon Sep 17 00:00:00 2001 From: Nathan Goldbaum Date: Tue, 5 Aug 2025 19:36:45 -0600 Subject: [PATCH] Use manylinux-entrypoint script for linux wheel builds See https://github.com/pypa/manylinux/issues/1825#issuecomment-3142130844 for an explanation of why we need to use this. --- .github/workflows/wheel-builder.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wheel-builder.yml b/.github/workflows/wheel-builder.yml index 7dd1877489f6..aeb96fadaaef 100644 --- a/.github/workflows/wheel-builder.yml +++ b/.github/workflows/wheel-builder.yml @@ -156,9 +156,12 @@ jobs: PY_LIMITED_API="--config-settings=build-args=--features=pyo3/abi3-${{ matrix.PYTHON.ABI_VERSION }}" fi + # The manylinux-entrypoint script accounts for uname issues, otherwise + # the platform tag on armv7 wheels might be tagged as aarch64 under + # docker running on an arm64 CPU OPENSSL_DIR="/opt/pyca/cryptography/openssl" \ OPENSSL_STATIC=1 \ - uv build --python=/opt/python/${{ matrix.PYTHON.VERSION }}/bin/python --wheel --require-hashes --build-constraint=$BUILD_REQUIREMENTS_PATH $PY_LIMITED_API cryptography*.tar.gz -o tmpwheelhouse/ + manylinux-entrypoint uv build --python=/opt/python/${{ matrix.PYTHON.VERSION }}/bin/python --wheel --require-hashes --build-constraint=$BUILD_REQUIREMENTS_PATH $PY_LIMITED_API cryptography*.tar.gz -o tmpwheelhouse/ env: RUSTUP_HOME: /root/.rustup - run: auditwheel repair --plat ${{ matrix.MANYLINUX.NAME }} tmpwheelhouse/cryptography*.whl -w wheelhouse/