This is an automated email from the ASF dual-hosted git repository.

hxb pushed a commit to branch release-2.0
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-2.0 by this push:
     new 3d7df8136ac [FLINK-37804][python][build] Fix build mac wheels error on 
Python3.8 in GHA (#26593)
3d7df8136ac is described below

commit 3d7df8136ac9b8c8bcaa7ec97eec866698107339
Author: xingbo <[email protected]>
AuthorDate: Fri May 23 15:28:54 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 59e00151694..0325fec66b8 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.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 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

Reply via email to