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