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

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


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

commit 8c14621ff36278f4521e8a6901a428a774c6d555
Author: Sergey Nuyanzin <[email protected]>
AuthorDate: Fri Apr 17 18:13:27 2026 +0200

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

diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 9f3c1cd9431..4fdf9fbda8d 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 28924bea8af..3042ef7d968 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'",
@@ -30,7 +30,7 @@ requires = [
 [dependency-groups]
 dev = [
   "pip>=20.3",
-  "setuptools>=75.3",
+  "setuptools>=75.3,<82",
   "wheel",
   "apache-beam>=2.54.0,<=2.61.0",
   "cython>=0.29.24",

Reply via email to