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 7db22fb6edc [FLINK-37804][python][build] Fix build mac wheels error on
Python3.8 in GHA (#26593)
7db22fb6edc is described below
commit 7db22fb6edca245c67b5dddec80786216af6dfe4
Author: HuangXingBo <[email protected]>
AuthorDate: Fri May 23 15:26:14 2025 +0800
[FLINK-37804][python][build] Fix build mac wheels error on Python3.8 in GHA
(#26593)
---
.github/workflows/nightly.yml | 4 +---
flink-python/pyproject.toml | 2 ++
tools/azure-pipelines/build-python-wheels.yml | 4 +---
3 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 77a58ecef01..08d27bce06f 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -99,9 +99,7 @@ jobs:
- name: "Setup Python"
uses: actions/setup-python@v5
with:
- # 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'
+ python-version: '3.x'
- 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/pyproject.toml b/flink-python/pyproject.toml
index cd63de2b32a..52fd0f5b3bd 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>=75.3",
"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.54.0,<=2.61.0",
"cython>=0.29.24"
]
diff --git a/tools/azure-pipelines/build-python-wheels.yml
b/tools/azure-pipelines/build-python-wheels.yml
index 026d9a1ca40..1ec944b487b 100644
--- a/tools/azure-pipelines/build-python-wheels.yml
+++ b/tools/azure-pipelines/build-python-wheels.yml
@@ -36,9 +36,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.12'
- script: |
cd flink-python
python -m pip install --upgrade pip