Skip to content

Commit b9ccfaf

Browse files
authored
Add s390x support (#392)
1 parent d159e45 commit b9ccfaf

File tree

4 files changed

+29
-1
lines changed

4 files changed

+29
-1
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ matrix:
2727
env: PLATFORM="aarch64"
2828
- arch: ppc64le
2929
env: PLATFORM="ppc64le"
30+
- arch: s390x
31+
env: PLATFORM="s390x"
3032

3133
script:
3234
- PLATFORM=$PLATFORM TRAVIS_COMMIT=$TRAVIS_COMMIT ./build.sh

README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ ppc64le image: ``quay.io/pypa/manylinux2014_ppc64le``
9696
.. image:: https://quay.io/repository/pypa/manylinux2014_ppc64le/status
9797
:target: https://quay.io/repository/pypa/manylinux2014_ppc64le
9898

99+
s390x image: ``quay.io/pypa/manylinux2014_s390x``
100+
101+
.. image:: https://quay.io/repository/pypa/manylinux2014_s390x/status
102+
:target: https://quay.io/repository/pypa/manylinux2014_s390x
103+
99104
These images are rebuilt using Travis-CI on every commit to this
100105
repository; see the
101106
`docker/ <https://github.com/pypa/manylinux/tree/manylinux2014/docker>`_

docker/Dockerfile-s390x

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM s390x/clefos:7
2+
LABEL maintainer="The ManyLinux project"
3+
4+
ENV AUDITWHEEL_ARCH s390x
5+
ENV AUDITWHEEL_PLAT manylinux2014_$AUDITWHEEL_ARCH
6+
ENV LC_ALL en_US.UTF-8
7+
ENV LANG en_US.UTF-8
8+
ENV LANGUAGE en_US.UTF-8
9+
ENV DEVTOOLSET_ROOTPATH /opt/rh/devtoolset-8/root
10+
ENV PATH $DEVTOOLSET_ROOTPATH/usr/bin:$PATH
11+
ENV LD_LIBRARY_PATH $DEVTOOLSET_ROOTPATH/usr/lib64:$DEVTOOLSET_ROOTPATH/usr/lib:$DEVTOOLSET_ROOTPATH/usr/lib64/dyninst:$DEVTOOLSET_ROOTPATH/usr/lib/dyninst:/usr/local/lib64:/usr/local/lib
12+
ENV PKG_CONFIG_PATH /usr/local/lib/pkgconfig
13+
14+
COPY build_scripts /build_scripts
15+
RUN bash build_scripts/build.sh && rm -r build_scripts
16+
17+
ENV SSL_CERT_FILE=/opt/_internal/certs.pem
18+
19+
CMD ["/bin/bash"]

docker/build_scripts/build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ sed -i '/^override_install_langs=/d' /etc/yum.conf
4949
# concerns."
5050
# Decided not to clean at this point: https://github.com/pypa/manylinux/pull/129
5151
yum -y update
52+
yum -y install yum-utils
53+
yum-config-manager --enable extras
5254

5355
# upgrading glibc-common can end with removal on en_US.UTF-8 locale
5456
localedef -i en_US -f UTF-8 en_US.UTF-8
@@ -62,7 +64,7 @@ if [ "${AUDITWHEEL_ARCH}" == "x86_64" ]; then
6264
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
6365
YASM=yasm
6466
TOOLCHAIN_DEPS=${DEVTOOLSET8_TOOLCHAIN_DEPS}
65-
elif [ "${AUDITWHEEL_ARCH}" == "aarch64" ] || [ "${AUDITWHEEL_ARCH}" == "ppc64le" ]; then
67+
elif [ "${AUDITWHEEL_ARCH}" == "aarch64" ] || [ "${AUDITWHEEL_ARCH}" == "ppc64le" ] || [ "${AUDITWHEEL_ARCH}" == "s390x" ]; then
6668
# Software collection (for devtoolset-8)
6769
yum -y install centos-release-scl-rh
6870
TOOLCHAIN_DEPS=${DEVTOOLSET8_TOOLCHAIN_DEPS}

0 commit comments

Comments
 (0)