This is an automated email from the ASF dual-hosted git repository.
hxb pushed a commit to branch release-1.20
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.20 by this push:
new b3983afb58c [FLINK-37804][python][build] Fix build mac wheels error on
Python3.8 in GHA (#26593)
b3983afb58c is described below
commit b3983afb58c1f06a7e58c5afe18c6171dcfb92d6
Author: xingbo <[email protected]>
AuthorDate: Fri May 23 15:31:34 2025 +0800
[FLINK-37804][python][build] Fix build mac wheels error on Python3.8 in GHA
(#26593)
---
flink-python/pyproject.toml | 2 ++
tools/azure-pipelines/build-python-wheels.yml | 4 +---
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/flink-python/pyproject.toml b/flink-python/pyproject.toml
index d388781325c..47ec69ab780 100644
--- a/flink-python/pyproject.toml
+++ b/flink-python/pyproject.toml
@@ -21,6 +21,8 @@ requires = [
"packaging>=20.5; platform_machine=='arm64'", # macos M1
"setuptools>=18.0",
"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'",
"apache-beam>=2.43.0,<2.49.0",
"cython>=0.29.24"
]
diff --git a/tools/azure-pipelines/build-python-wheels.yml
b/tools/azure-pipelines/build-python-wheels.yml
index bc7e97e23f6..d68069c1632 100644
--- a/tools/azure-pipelines/build-python-wheels.yml
+++ b/tools/azure-pipelines/build-python-wheels.yml
@@ -33,9 +33,7 @@ jobs:
steps:
- task: UsePythonVersion@0
inputs:
- # 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
- versionSpec: '3.8'
+ versionSpec: '3.11'
- script: |
cd flink-python
python -m pip install --upgrade pip