Skip to content

Commit

Permalink
Fixed yum repo in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
isi-adas committed Aug 15, 2024
1 parent a5c7847 commit 750a53f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
13 changes: 9 additions & 4 deletions buildwheel/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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*"
Expand Down

0 comments on commit 750a53f

Please sign in to comment.