This is an automated email from the ASF dual-hosted git repository.

snuyanzin pushed a commit to branch release-2.1
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-2.1 by this push:
     new 76f86895467 [FLINK-39480][ci] Python wheel on MacOS fails for all 2.x 
branches
76f86895467 is described below

commit 76f86895467bcb0a3768b54c5759b560db62b1cc
Author: Sergey Nuyanzin <[email protected]>
AuthorDate: Fri Apr 17 17:24:08 2026 +0200

    [FLINK-39480][ci] Python wheel on MacOS fails for all 2.x branches
---
 .github/workflows/nightly.yml | 6 +++++-
 flink-python/pyproject.toml   | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index f2cc179e2df..8efc526a2ca 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -101,7 +101,10 @@ jobs:
         with:
           python-version: '3.x'
       - name: "Install cibuildwheel"
-        run: python -m pip install cibuildwheel==2.16.5
+        # Need to limit setuptools here in order to apply limitations for 
transitive dependencies
+        run: |
+          python -m pip install cibuildwheel==2.16.5
+          echo "setuptools<82" > /tmp/build-constraints.txt
       - name: "Build python wheels for ${{ matrix.os_name }}"
         run: python -m cibuildwheel --output-dir flink-python/dist flink-python
         env:
@@ -116,6 +119,7 @@ jobs:
           CIBW_REPAIR_WHEEL_COMMAND_LINUX: "auditwheel repair -w {dest_dir} 
{wheel}"
           # Skip repair on MacOS
           CIBW_REPAIR_WHEEL_COMMAND_MACOS: ""
+          PIP_CONSTRAINT: /tmp/build-constraints.txt
       - name: "Upload python wheels"
         uses: actions/upload-artifact@v4
         with:
diff --git a/flink-python/pyproject.toml b/flink-python/pyproject.toml
index c77177574d8..0bae6c76356 100644
--- a/flink-python/pyproject.toml
+++ b/flink-python/pyproject.toml
@@ -19,7 +19,7 @@
 # Minimum requirements for the build system to execute.
 requires = [
     "packaging>=20.5; platform_machine=='arm64'",  # macos M1
-    "setuptools>=75.3",
+    "setuptools>=75.3,<82",
     "wheel",
     "cython>=0.29.24,<3; sys_platform == 'darwin' and python_version == '3.8'",
     "fastavro==1.7.4; sys_platform == 'darwin' and python_version == '3.8'",

Reply via email to