This is an automated email from the ASF dual-hosted git repository.
dianfu 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 c31f46757a4 [FLINK-40464][python] Bump cibuildwheel to 4.2.0 (#29016)
c31f46757a4 is described below
commit c31f46757a412bdd273e6c2f3802f906ce8602a2
Author: florianvazelle <[email protected]>
AuthorDate: Thu Sep 10 14:37:00 2026 +0200
[FLINK-40464][python] Bump cibuildwheel to 4.2.0 (#29016)
---
.github/workflows/nightly.yml | 3 +--
flink-python/dev/build-wheels.sh | 4 ----
flink-python/dev/glibc_version_fix.h | 17 -----------------
tools/azure-pipelines/build-python-wheels.yml | 2 +-
4 files changed, 2 insertions(+), 24 deletions(-)
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 2586b4de649..b285112878d 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -122,7 +122,7 @@ jobs:
- name: "Install cibuildwheel"
# Need to limit setuptools here in order to apply limitations for
transitive dependencies
run: |
- python -m pip install cibuildwheel==2.16.5
+ python -m pip install cibuildwheel==4.2.0
echo "setuptools<82" > /tmp/build-constraints.txt
- name: "Build python wheels for ${{ matrix.os_name }}"
run: python -m cibuildwheel --output-dir flink-python/dist flink-python
@@ -133,7 +133,6 @@ jobs:
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
CIBW_BEFORE_ALL_LINUX: pip install patchelf
CIBW_BEFORE_BUILD_LINUX: pip install --upgrade pip && pip install
--group flink-python/pyproject.toml:dev
- CIBW_ENVIRONMENT_LINUX: CFLAGS="-I. -include
./dev/glibc_version_fix.h"
# Run auditwheel repair on Linux
CIBW_REPAIR_WHEEL_COMMAND_LINUX: "auditwheel repair -w {dest_dir}
{wheel}"
# Skip repair on MacOS
diff --git a/flink-python/dev/build-wheels.sh b/flink-python/dev/build-wheels.sh
index 1b9eb38cab3..90ce3a471d7 100755
--- a/flink-python/dev/build-wheels.sh
+++ b/flink-python/dev/build-wheels.sh
@@ -31,10 +31,6 @@ done
## 3. build wheels
for ((i=0;i<${#py_env[@]};i++)) do
echo "Building wheel for environment: ${py_env[i]}"
- if [[ "$(uname)" != "Darwin" ]]; then
- # force the linker to use the older glibc version in Linux
- export CFLAGS="-I. -include dev/glibc_version_fix.h"
- fi
${PY_ENV_DIR}/${py_env[i]}/bin/python setup.py bdist_wheel
done
diff --git a/flink-python/dev/glibc_version_fix.h
b/flink-python/dev/glibc_version_fix.h
deleted file mode 100755
index f2604921d99..00000000000
--- a/flink-python/dev/glibc_version_fix.h
+++ /dev/null
@@ -1,17 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");
diff --git a/tools/azure-pipelines/build-python-wheels.yml
b/tools/azure-pipelines/build-python-wheels.yml
index 418bdeb88c2..9ea8465205f 100644
--- a/tools/azure-pipelines/build-python-wheels.yml
+++ b/tools/azure-pipelines/build-python-wheels.yml
@@ -40,7 +40,7 @@ jobs:
- script: |
cd flink-python
python -m pip install --upgrade pip
- pip install cibuildwheel==2.16.5
+ pip install cibuildwheel==4.2.0
cibuildwheel --platform macos --output-dir dist .
- task: PublishPipelineArtifact@0
inputs: