This is an automated email from the ASF dual-hosted git repository.
snuyanzin pushed a commit to branch release-2.0
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-2.0 by this push:
new a6a88082e90 [FLINK-39480][ci] Python wheel on MacOS fails for all 2.x
branches
a6a88082e90 is described below
commit a6a88082e90a1d271dbd92182bb135685cc54c3f
Author: Sergey Nuyanzin <[email protected]>
AuthorDate: Fri Apr 17 17:09:37 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 5c1e2d516ab..a5ac66b13b3 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'",