diff --git a/buildwheel/Dockerfile b/buildwheel/Dockerfile index 24efe85..8ad5626 100644 --- a/buildwheel/Dockerfile +++ b/buildwheel/Dockerfile @@ -1,8 +1,13 @@ FROM quay.io/pypa/manylinux2010_x86_64 COPY . /src/pike -RUN yum install -y krb5-devel krb5-workstation python27 && \ +RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \ + sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* && \ + yum install -y krb5-devel krb5-workstation python27 && \ source /opt/rh/python27/enable && \ - python2.7 -m pip install -U 'pip<21' && \ - python2.7 -m pip install build - + export PATH=$PATH:/opt/rh/python27/root/usr/bin && \ + export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/rh/python27/root/usr/lib64 && \ + echo /opt/rh/python27/root/usr/lib64 >> /etc/ld.so.conf && \ + ldconfig && \ + /opt/rh/python27/root/usr/bin/python2.7 -m pip install --trusted-host pypi.python.org -U 'pip<21' && \ + /opt/rh/python27/root/usr/bin/python2.7 -m pip install --trusted-host pypi.python.org build CMD /src/pike/buildwheel/wheel27.sh diff --git a/pyproject.toml b/pyproject.toml index 867d1a5..2b70f12 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,9 @@ test-command = [ [tool.cibuildwheel.linux] environment-pass = ["HOST_IPV4", "SAMBA_REALM", "SAMBA_SERVER", "ADMIN_PASSWORD"] -before-all = "yum install -y krb5-devel krb5-workstation" +before-all = """sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*; + sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*; + yum install -y krb5-devel krb5-workstation""" [[tool.cibuildwheel.overrides]] select = "*-musllinux*"