Skip to content

Commit 8c14621

Browse files
authored
[FLINK-39480][ci] Python wheel on MacOS fails for all 2.x branches
1 parent 9f19743 commit 8c14621

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ jobs:
101101
with:
102102
python-version: '3.x'
103103
- name: "Install cibuildwheel"
104-
run: python -m pip install cibuildwheel==2.16.5
104+
# Need to limit setuptools here in order to apply limitations for transitive dependencies
105+
run: |
106+
python -m pip install cibuildwheel==2.16.5
107+
echo "setuptools<82" > /tmp/build-constraints.txt
105108
- name: "Build python wheels for ${{ matrix.os_name }}"
106109
run: python -m cibuildwheel --output-dir flink-python/dist flink-python
107110
env:
@@ -116,6 +119,7 @@ jobs:
116119
CIBW_REPAIR_WHEEL_COMMAND_LINUX: "auditwheel repair -w {dest_dir} {wheel}"
117120
# Skip repair on MacOS
118121
CIBW_REPAIR_WHEEL_COMMAND_MACOS: ""
122+
PIP_CONSTRAINT: /tmp/build-constraints.txt
119123
- name: "Upload python wheels"
120124
uses: actions/upload-artifact@v4
121125
with:

flink-python/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# Minimum requirements for the build system to execute.
2020
requires = [
2121
"packaging>=20.5; platform_machine=='arm64'", # macos M1
22-
"setuptools>=75.3",
22+
"setuptools>=75.3,<82",
2323
"wheel",
2424
"cython>=0.29.24,<3; sys_platform == 'darwin' and python_version == '3.8'",
2525
"fastavro==1.7.4; sys_platform == 'darwin' and python_version == '3.8'",
@@ -30,7 +30,7 @@ requires = [
3030
[dependency-groups]
3131
dev = [
3232
"pip>=20.3",
33-
"setuptools>=75.3",
33+
"setuptools>=75.3,<82",
3434
"wheel",
3535
"apache-beam>=2.54.0,<=2.61.0",
3636
"cython>=0.29.24",

0 commit comments

Comments
 (0)