scripts/build_manylinux_in_docker.sh: use CentOS Vault mirrors for EOL CentOS 7

CentOS 7 is now EOL, so the manylinux2014 build is failing; see
pypa/manylinux#1641. Work around it by using the archive mirror.

Signed-off-by: Omar Sandoval <osandov@osandov.com>
This commit is contained in:
Omar Sandoval 2024-07-01 10:26:36 -07:00
parent 22b4223153
commit a36c056bec

View File

@ -7,6 +7,10 @@ set -eux
# Drop into a shell if something fails.
trap 'if [ $? -ne 0 ]; then exec bash -i; fi' EXIT
sed -i -e 's/mirrorlist/#mirrorlist/g' \
-e 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' \
/etc/yum.repos.d/CentOS-*
yum install -y \
bzip2-devel \
libzstd-devel \