Skip to content

Commit 3a3fb50

Browse files
authored
Merge pull request #1792 from mayeut/manylinux_2_28_i686
feat: add manylinux_2_28_i686 / manylinux_2_34_i686
2 parents c1ce95b + 63bf06e commit 3a3fb50

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
reduced = [
5454
("x86_64", "ubuntu-24.04", ("manylinux2014", "manylinux_2_28", "manylinux_2_34", "musllinux_1_2")),
5555
("aarch64", "ubuntu-24.04-arm", ("manylinux2014", "manylinux_2_28", "manylinux_2_34", "musllinux_1_2")),
56-
("i686", "ubuntu-24.04", ("manylinux2014", "musllinux_1_2")),
56+
("i686", "ubuntu-24.04", ("manylinux2014", "manylinux_2_28", "manylinux_2_34", "musllinux_1_2")),
5757
("armv7l", "ubuntu-24.04-arm", ("manylinux_2_31", "musllinux_1_2")),
5858
("s390x", "ubuntu-24.04", ("musllinux_1_2",)),
5959
]

README.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ The manylinux project supports:
3434

3535
- ``manylinux2014`` images for ``x86_64``, ``i686``, ``aarch64``, ``ppc64le`` and ``s390x``.
3636

37-
- ``manylinux_2_28`` images for ``x86_64``, ``aarch64``, ``ppc64le`` and ``s390x``.
37+
- ``manylinux_2_28`` images for ``x86_64``, ``i686``, ``aarch64``, ``ppc64le`` and ``s390x``.
3838

39-
- ``manylinux_2_34`` images for ``x86_64``, ``aarch64``, ``ppc64le`` and ``s390x``.
39+
- ``manylinux_2_34`` images for ``x86_64``, ``i686``, ``aarch64``, ``ppc64le`` and ``s390x``.
4040

4141
- ``musllinux_1_2`` images for ``x86_64``, ``i686``, ``aarch64``, ``ppc64le``, ``s390x`` and ``armv7l``.
4242

@@ -107,6 +107,7 @@ See https://github.com/pypa/manylinux/issues/1725
107107
Toolchain: GCC 14
108108

109109
- x86_64 image: ``quay.io/pypa/manylinux_2_34_x86_64``
110+
- i686 image: ``quay.io/pypa/manylinux_2_34_i686``
110111
- aarch64 image: ``quay.io/pypa/manylinux_2_34_aarch64``
111112
- ppc64le image: ``quay.io/pypa/manylinux_2_34_ppc64le``
112113
- s390x image: ``quay.io/pypa/manylinux_2_34_s390x``
@@ -157,6 +158,7 @@ manylinux_2_28 (AlmaLinux 8 based)
157158
Toolchain: GCC 14
158159

159160
- x86_64 image: ``quay.io/pypa/manylinux_2_28_x86_64``
161+
- i686 image: ``quay.io/pypa/manylinux_2_28_i686``
160162
- aarch64 image: ``quay.io/pypa/manylinux_2_28_aarch64``
161163
- ppc64le image: ``quay.io/pypa/manylinux_2_28_ppc64le``
162164
- s390x image: ``quay.io/pypa/manylinux_2_28_s390x``

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if [ "${POLICY}" == "manylinux2014" ]; then
3434
LD_LIBRARY_PATH_ARG="${DEVTOOLSET_ROOTPATH}/usr/lib64:${DEVTOOLSET_ROOTPATH}/usr/lib:${DEVTOOLSET_ROOTPATH}/usr/lib64/dyninst:${DEVTOOLSET_ROOTPATH}/usr/lib/dyninst:/usr/local/lib64"
3535
fi
3636
elif [ "${POLICY}" == "manylinux_2_28" ]; then
37-
BASEIMAGE="almalinux:8"
37+
BASEIMAGE="quay.io/almalinuxorg/almalinux:8"
3838
DEVTOOLSET_ROOTPATH="/opt/rh/gcc-toolset-14/root"
3939
PREPEND_PATH="${DEVTOOLSET_ROOTPATH}/usr/bin:"
4040
LD_LIBRARY_PATH_ARG="${DEVTOOLSET_ROOTPATH}/usr/lib64:${DEVTOOLSET_ROOTPATH}/usr/lib:${DEVTOOLSET_ROOTPATH}/usr/lib64/dyninst:${DEVTOOLSET_ROOTPATH}/usr/lib/dyninst"
@@ -44,7 +44,7 @@ elif [ "${POLICY}" == "manylinux_2_31" ]; then
4444
PREPEND_PATH=
4545
LD_LIBRARY_PATH_ARG=
4646
elif [ "${POLICY}" == "manylinux_2_34" ]; then
47-
BASEIMAGE="almalinux:9"
47+
BASEIMAGE="quay.io/almalinuxorg/almalinux:9"
4848
DEVTOOLSET_ROOTPATH="/opt/rh/gcc-toolset-14/root"
4949
PREPEND_PATH="/usr/local/bin:${DEVTOOLSET_ROOTPATH}/usr/bin:"
5050
LD_LIBRARY_PATH_ARG="${DEVTOOLSET_ROOTPATH}/usr/lib64:${DEVTOOLSET_ROOTPATH}/usr/lib:${DEVTOOLSET_ROOTPATH}/usr/lib64/dyninst:${DEVTOOLSET_ROOTPATH}/usr/lib/dyninst"

deploy_multiarch.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ for IMAGE in "${IMAGES[@]}"; do
3232

3333
case ${IMAGE} in
3434
manylinux_2_31) ARCHS=("armv7l");;
35-
manylinux2014) ARCHS=("x86_64" "i686" "aarch64" "ppc64le" "s390x");;
3635
musllinux_1_2) ARCHS=("x86_64" "i686" "aarch64" "armv7l" "ppc64le" "s390x");;
37-
*) ARCHS=("x86_64" "aarch64" "ppc64le" "s390x");;
36+
*) ARCHS=("x86_64" "i686" "aarch64" "ppc64le" "s390x");;
3837
esac
3938

4039
LATEST_MANIFEST=

docker/build_scripts/install-runtime-packages.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ elif [ "${OS_ID_LIKE}" == "rhel" ]; then
119119
BASE_TOOLS+=(glibc-locale-source glibc-langpack-en hardlink hostname libcurl libnsl libxcrypt which)
120120
echo "tsflags=nodocs" >> /etc/dnf/dnf.conf
121121
dnf -y upgrade
122-
dnf -y install dnf-plugins-core epel-release
122+
EPEL=epel-release
123+
if [ "${AUDITWHEEL_ARCH}" == "i686" ]; then
124+
EPEL=
125+
fi
126+
dnf -y install dnf-plugins-core ${EPEL}
123127
if [ "${AUDITWHEEL_POLICY}" == "manylinux_2_28" ]; then
124128
dnf config-manager --set-enabled powertools
125129
else
@@ -160,3 +164,7 @@ else
160164
chsh -s /bin/bash root
161165
useradd -D -s /bin/bash
162166
fi
167+
168+
if [ "${OS_ID_LIKE}-${AUDITWHEEL_ARCH}" == "rhel-i686" ] && [ -f /usr/bin/i686-redhat-linux-gnu-pkg-config ] && [ ! -f /usr/bin/i386-redhat-linux-gnu-pkg-config ]; then
169+
ln -s i686-redhat-linux-gnu-pkg-config /usr/bin/i386-redhat-linux-gnu-pkg-config
170+
fi

0 commit comments

Comments
 (0)