From aa3db841e7e818eced6671d6850e95c123904bdc Mon Sep 17 00:00:00 2001 From: szmcdull Date: Mon, 31 Aug 2026 10:04:25 +0800 Subject: [PATCH] fix(python): build GNU/Linux wheels with manylinux_2_28 Release currently builds Python wheels on the ubuntu-24.04 host, which tags manylinux_2_39. pip then rejects those wheels on Ubuntu 22.04 (glibc 2.35). Build GNU/Linux wheels in a manylinux_2_28 container instead, matching the musl job's interpreter selection. Co-authored-by: Cursor --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c4e9be667..6fb828dd9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,7 +34,12 @@ jobs: - name: Build wheels uses: PyO3/maturin-action@v1 with: - args: -i python --release --out dist -m python/Cargo.toml + # GNU/Linux wheels must be built in a manylinux container. Building on + # the ubuntu-24.04 host without this tags manylinux_2_39 (glibc 2.39), + # which pip cannot install on Ubuntu 22.04 (glibc 2.35). manylinux_2_28 + # covers Ubuntu 20.04/22.04/24.04. Ignored on Windows and macOS. + manylinux: ${{ startsWith(matrix.runs-on, 'ubuntu') && '2_28' || 'off' }} + args: -i python${{ matrix.python-version }} --release --out dist -m python/Cargo.toml - name: Install built wheel run: | pip install longbridge --no-index --find-links dist --force-reinstall