This is an automated email from the ASF dual-hosted git repository.
hxb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new 6759d3e79aa [FLINK-37804][python][build] Fix build mac wheels error in
GHA (#26585)
6759d3e79aa is described below
commit 6759d3e79aa33e733dc249f80394d505b14af6d1
Author: HuangXingBo <[email protected]>
AuthorDate: Thu May 22 19:56:21 2025 +0800
[FLINK-37804][python][build] Fix build mac wheels error in GHA (#26585)
---
.github/workflows/nightly.yml | 4 +++-
flink-python/dev/dev-requirements.txt | 2 +-
flink-python/pyproject.toml | 3 +--
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 08d27bce06f..77a58ecef01 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -99,7 +99,9 @@ jobs:
- name: "Setup Python"
uses: actions/setup-python@v5
with:
- python-version: '3.x'
+ # pinning to 3.8.x to avoid issues with cibuildwheel for macOS with
python 3.8 wheel,
+ # if drop support of 3.8, change to 3.x
+ python-version: '3.8'
- name: "Install cibuildwheel"
run: python -m pip install cibuildwheel==2.16.5
- name: "Build python wheels for ${{ matrix.os_name }}"
diff --git a/flink-python/dev/dev-requirements.txt
b/flink-python/dev/dev-requirements.txt
index d81600b7a1b..8ecabfea885 100755
--- a/flink-python/dev/dev-requirements.txt
+++ b/flink-python/dev/dev-requirements.txt
@@ -16,7 +16,7 @@ pip>=20.3
setuptools>=75.3
wheel
apache-beam>=2.54.0,<=2.61.0
-cython>=0.29.24,<3.1.0
+cython>=0.29.24
py4j==0.10.9.7
python-dateutil>=2.8.0,<3
cloudpickle~=2.2.0
diff --git a/flink-python/pyproject.toml b/flink-python/pyproject.toml
index d31a22a01a8..cd63de2b32a 100644
--- a/flink-python/pyproject.toml
+++ b/flink-python/pyproject.toml
@@ -22,8 +22,7 @@ requires = [
"setuptools>=75.3",
"wheel",
"apache-beam>=2.54.0,<=2.61.0",
- "cython>=0.29.24,<3.1.0",
- "fastavro>=1.1.0,!=1.8.0"
+ "cython>=0.29.24"
]
[tool.cibuildwheel]