From af485fc08befe1c905caa1f0a8bd7ad7085ac9e1 Mon Sep 17 00:00:00 2001 From: Bruno Manuel Santos Saraiva Date: Wed, 2 Jul 2025 11:59:54 +0100 Subject: [PATCH 1/5] trying to upgrade build tools to more recent manylinux image --- .github/workflows/build_test_deploy_all_wheels.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_test_deploy_all_wheels.yml b/.github/workflows/build_test_deploy_all_wheels.yml index b9498dc6..0aa038bc 100644 --- a/.github/workflows/build_test_deploy_all_wheels.yml +++ b/.github/workflows/build_test_deploy_all_wheels.yml @@ -18,6 +18,7 @@ jobs: runner: [self-hosted, Ubuntu, Native] archs: auto cibw_build: cp39-manylinux_x86_64 cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64 + CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28 - os: windows runner: [self-hosted, Windows] archs: auto @@ -49,7 +50,8 @@ jobs: env: CIBW_BUILD: ${{ matrix.cibw_build }} CIBW_ARCHS: ${{ matrix.archs }} - CIBW_BEFORE_ALL: yum install -y libjpeg-devel zlib-devel libpng-devel + CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.os == 'manylinux' && 'manylinux_2_28' || '' }} + CIBW_BEFORE_ALL: ${{ matrix.os == 'manylinux' && 'dnf install -y libjpeg-devel zlib-devel libpng-devel' || '' }} - name: Test wheels (only on macOS ARM64) if: matrix.os == 'macOS-ARM' From a2da2ccdbd8fc344be66267d58d60f39aacc673e Mon Sep 17 00:00:00 2001 From: Bruno Manuel Santos Saraiva Date: Wed, 2 Jul 2025 12:03:05 +0100 Subject: [PATCH 2/5] new try --- .github/workflows/build_test_deploy_all_wheels.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_test_deploy_all_wheels.yml b/.github/workflows/build_test_deploy_all_wheels.yml index 0aa038bc..9cbd4535 100644 --- a/.github/workflows/build_test_deploy_all_wheels.yml +++ b/.github/workflows/build_test_deploy_all_wheels.yml @@ -18,7 +18,6 @@ jobs: runner: [self-hosted, Ubuntu, Native] archs: auto cibw_build: cp39-manylinux_x86_64 cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64 - CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28 - os: windows runner: [self-hosted, Windows] archs: auto @@ -46,12 +45,12 @@ jobs: run: python -m nox --sessions build_sdist - name: Build wheels - run: python -m cibuildwheel --output-dir wheelhouse + run: | + python -m pip install --only-binary=:all: pillow + python -m cibuildwheel --output-dir wheelhouse env: CIBW_BUILD: ${{ matrix.cibw_build }} CIBW_ARCHS: ${{ matrix.archs }} - CIBW_MANYLINUX_X86_64_IMAGE: ${{ matrix.os == 'manylinux' && 'manylinux_2_28' || '' }} - CIBW_BEFORE_ALL: ${{ matrix.os == 'manylinux' && 'dnf install -y libjpeg-devel zlib-devel libpng-devel' || '' }} - name: Test wheels (only on macOS ARM64) if: matrix.os == 'macOS-ARM' From 7d5ac7f89c73b06c825bb75fc86f76552077ef7c Mon Sep 17 00:00:00 2001 From: Bruno Manuel Santos Saraiva Date: Wed, 2 Jul 2025 12:09:34 +0100 Subject: [PATCH 3/5] testing gh runner instead of self-hosted --- .github/workflows/build_test_deploy_all_wheels.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/build_test_deploy_all_wheels.yml b/.github/workflows/build_test_deploy_all_wheels.yml index 9cbd4535..aa6fbbaa 100644 --- a/.github/workflows/build_test_deploy_all_wheels.yml +++ b/.github/workflows/build_test_deploy_all_wheels.yml @@ -15,7 +15,7 @@ jobs: archs: arm64 cibw_build: cp39-macosx_arm64 cp310-macosx_arm64 cp311-macosx_arm64 cp312-macosx_arm64 - os: manylinux - runner: [self-hosted, Ubuntu, Native] + runner: ubuntu-latest archs: auto cibw_build: cp39-manylinux_x86_64 cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64 - os: windows @@ -30,10 +30,6 @@ jobs: with: python-version: 3.9 # Works as bootstrap for cibuildwheel - - name: Install libjpeg-dev - if: matrix.os == 'manylinux' - run: sudo apt-get update && sudo apt-get install -y libjpeg-dev - - name: Install cibuildwheel and nox run: | python -m pip install --upgrade pip @@ -46,7 +42,6 @@ jobs: - name: Build wheels run: | - python -m pip install --only-binary=:all: pillow python -m cibuildwheel --output-dir wheelhouse env: CIBW_BUILD: ${{ matrix.cibw_build }} From b88a40dec16512b4d036c4beb39aee5d6d88292d Mon Sep 17 00:00:00 2001 From: Bruno Manuel Santos Saraiva Date: Wed, 2 Jul 2025 12:29:00 +0100 Subject: [PATCH 4/5] explictly installing setuptools --- .github/workflows/build_test_deploy_all_wheels.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_test_deploy_all_wheels.yml b/.github/workflows/build_test_deploy_all_wheels.yml index aa6fbbaa..f3689b2e 100644 --- a/.github/workflows/build_test_deploy_all_wheels.yml +++ b/.github/workflows/build_test_deploy_all_wheels.yml @@ -15,7 +15,7 @@ jobs: archs: arm64 cibw_build: cp39-macosx_arm64 cp310-macosx_arm64 cp311-macosx_arm64 cp312-macosx_arm64 - os: manylinux - runner: ubuntu-latest + runner: [self-hosted, Ubuntu, Native] archs: auto cibw_build: cp39-manylinux_x86_64 cp310-manylinux_x86_64 cp311-manylinux_x86_64 cp312-manylinux_x86_64 - os: windows @@ -33,6 +33,7 @@ jobs: - name: Install cibuildwheel and nox run: | python -m pip install --upgrade pip + python -m pip install --upgrade setuptools==73.0.1 python -m pip install cibuildwheel==2.16.2 python -m pip install nox From b819d61f05e63404b75d7aaa7dfb40235419a564 Mon Sep 17 00:00:00 2001 From: Bruno Manuel Santos Saraiva Date: Wed, 2 Jul 2025 13:06:54 +0100 Subject: [PATCH 5/5] adding pillow install inside cibuildwheels container --- .github/workflows/build_test_deploy_all_wheels.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build_test_deploy_all_wheels.yml b/.github/workflows/build_test_deploy_all_wheels.yml index f3689b2e..e84f6ceb 100644 --- a/.github/workflows/build_test_deploy_all_wheels.yml +++ b/.github/workflows/build_test_deploy_all_wheels.yml @@ -47,6 +47,8 @@ jobs: env: CIBW_BUILD: ${{ matrix.cibw_build }} CIBW_ARCHS: ${{ matrix.archs }} + CIBW_ENVIRONMENT: "PIP_ONLY_BINARY=pillow PIP_NO_BUILD_ISOLATION=1" + CIBW_BEFORE_ALL: "pip install --only-binary=:all: pillow" - name: Test wheels (only on macOS ARM64) if: matrix.os == 'macOS-ARM'