From 72ce13750f62fa7a1429890470710d792d932b8f Mon Sep 17 00:00:00 2001 From: Kyle Barron Date: Thu, 5 Feb 2026 12:33:16 -0500 Subject: [PATCH 1/3] ci(python): Fix python wheel build with LERC dependency --- .github/workflows/python-wheels.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/python-wheels.yml b/.github/workflows/python-wheels.yml index 9e9792c6..0a2d8476 100644 --- a/.github/workflows/python-wheels.yml +++ b/.github/workflows/python-wheels.yml @@ -54,6 +54,9 @@ jobs: args: --release --out dist -i 3.13 --features abi3-py311 --features extension-module --manifest-path python/Cargo.toml sccache: "true" manylinux: ${{ matrix.platform.manylinux }} + before-script-linux: | + # Install libclang for bindgen (required by lerc-sys) + yum install -y clang-devel || apt-get update && apt-get install -y libclang-dev - name: Build version-specific wheels uses: PyO3/maturin-action@v1 @@ -62,6 +65,9 @@ jobs: args: --release --out dist -i 3.10 -i pypy3.11 --features extension-module --manifest-path python/Cargo.toml sccache: "true" manylinux: ${{ matrix.platform.manylinux }} + before-script-linux: | + # Install libclang for bindgen (required by lerc-sys) + yum install -y clang-devel || apt-get update && apt-get install -y libclang-dev - name: Upload wheels uses: actions/upload-artifact@v4 @@ -101,6 +107,9 @@ jobs: args: --release --out dist -i 3.13 --features abi3-py311 --features extension-module --manifest-path python/Cargo.toml sccache: "true" manylinux: musllinux_1_2 + before-script-linux: | + # Install libclang for bindgen (required by lerc-sys) + apk add clang-dev - name: Build version-specific wheels uses: PyO3/maturin-action@v1 @@ -109,6 +118,9 @@ jobs: args: --release --out dist -i 3.10 -i pypy3.11 --features extension-module --manifest-path python/Cargo.toml sccache: "true" manylinux: musllinux_1_2 + before-script-linux: | + # Install libclang for bindgen (required by lerc-sys) + apk add clang-dev - name: Upload wheels uses: actions/upload-artifact@v4 From aac05e599c40077abb057d917df429d18f5a3633 Mon Sep 17 00:00:00 2001 From: Kyle Barron Date: Thu, 5 Feb 2026 12:36:33 -0500 Subject: [PATCH 2/3] try again --- .github/workflows/python-wheels.yml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-wheels.yml b/.github/workflows/python-wheels.yml index 0a2d8476..bac5f023 100644 --- a/.github/workflows/python-wheels.yml +++ b/.github/workflows/python-wheels.yml @@ -56,7 +56,11 @@ jobs: manylinux: ${{ matrix.platform.manylinux }} before-script-linux: | # Install libclang for bindgen (required by lerc-sys) - yum install -y clang-devel || apt-get update && apt-get install -y libclang-dev + if command -v yum &> /dev/null; then + yum install -y clang-devel + elif command -v apt-get &> /dev/null; then + apt-get update && apt-get install -y libclang-dev + fi - name: Build version-specific wheels uses: PyO3/maturin-action@v1 @@ -67,7 +71,11 @@ jobs: manylinux: ${{ matrix.platform.manylinux }} before-script-linux: | # Install libclang for bindgen (required by lerc-sys) - yum install -y clang-devel || apt-get update && apt-get install -y libclang-dev + if command -v yum &> /dev/null; then + yum install -y clang-devel + elif command -v apt-get &> /dev/null; then + apt-get update && apt-get install -y libclang-dev + fi - name: Upload wheels uses: actions/upload-artifact@v4 @@ -109,7 +117,13 @@ jobs: manylinux: musllinux_1_2 before-script-linux: | # Install libclang for bindgen (required by lerc-sys) - apk add clang-dev + if command -v apk &> /dev/null; then + apk add clang-dev + elif command -v yum &> /dev/null; then + yum install -y clang-devel + elif command -v apt-get &> /dev/null; then + apt-get update && apt-get install -y libclang-dev + fi - name: Build version-specific wheels uses: PyO3/maturin-action@v1 @@ -120,7 +134,13 @@ jobs: manylinux: musllinux_1_2 before-script-linux: | # Install libclang for bindgen (required by lerc-sys) - apk add clang-dev + if command -v apk &> /dev/null; then + apk add clang-dev + elif command -v yum &> /dev/null; then + yum install -y clang-devel + elif command -v apt-get &> /dev/null; then + apt-get update && apt-get install -y libclang-dev + fi - name: Upload wheels uses: actions/upload-artifact@v4 From 353f2789ae4c4b76b4b7c6fb43ba7f0912b19890 Mon Sep 17 00:00:00 2001 From: Kyle Barron Date: Thu, 5 Feb 2026 12:48:36 -0500 Subject: [PATCH 3/3] bump to manylinux 2_28 --- .github/workflows/python-wheels.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-wheels.yml b/.github/workflows/python-wheels.yml index bac5f023..4d8ffb12 100644 --- a/.github/workflows/python-wheels.yml +++ b/.github/workflows/python-wheels.yml @@ -26,13 +26,13 @@ jobs: platform: - runner: ubuntu-latest target: x86_64 - manylinux: auto + manylinux: "2_28" - runner: ubuntu-latest target: x86 - manylinux: auto + manylinux: "2_28" - runner: ubuntu-latest target: aarch64 - manylinux: "2_24" + manylinux: "2_28" steps: - uses: actions/checkout@v4 with: