Skip to content

Commit e8df50c

Browse files
authored
chore: use manylinux2014_base base image for manylinux2014 (#1705)
With CentOS 7 having reach EOL, packages versions are now immutable. Using a base image with manylinux runtime packages allows to reduce image size and improve cache efficiency.
1 parent e162370 commit e8df50c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

build.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ fi
3737

3838
# setup BASEIMAGE and its specific properties
3939
if [ "${POLICY}" == "manylinux2014" ]; then
40-
if [ "${PLATFORM}" == "s390x" ]; then
41-
BASEIMAGE="s390x/clefos:7"
42-
else
43-
BASEIMAGE="${MULTIARCH_PREFIX}centos:7"
44-
fi
40+
BASEIMAGE="quay.io/pypa/manylinux2014_base:2024.11.03-3"
4541
DEVTOOLSET_ROOTPATH="/opt/rh/devtoolset-10/root"
4642
PREPEND_PATH="${DEVTOOLSET_ROOTPATH}/usr/bin:"
4743
if [ "${PLATFORM}" == "i686" ]; then

docker/build_scripts/install-runtime-packages.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ if [ "${AUDITWHEEL_POLICY}" == "manylinux2014" ]; then
8888
if [ "${AUDITWHEEL_ARCH}" == "x86_64" ]; then
8989
# Software collection (for devtoolset-10)
9090
yum -y install centos-release-scl-rh
91-
# EPEL support (for yasm)
92-
yum -y install https://archives.fedoraproject.org/pub/archive/epel/7/x86_64/Packages/e/epel-release-7-14.noarch.rpm
91+
if ! rpm -q epel-release-7-14.noarch; then
92+
# EPEL support (for yasm)
93+
yum -y install https://archives.fedoraproject.org/pub/archive/epel/7/x86_64/Packages/e/epel-release-7-14.noarch.rpm
94+
fi
9395
TOOLCHAIN_DEPS="${TOOLCHAIN_DEPS} yasm"
9496
elif [ "${AUDITWHEEL_ARCH}" == "aarch64" ] || [ "${AUDITWHEEL_ARCH}" == "ppc64le" ] || [ "${AUDITWHEEL_ARCH}" == "s390x" ]; then
9597
# Software collection (for devtoolset-10)

0 commit comments

Comments
 (0)