From cba0a0a4979e297500bef59627843da0eabb4e7c Mon Sep 17 00:00:00 2001 From: "Kevin J. Sung" Date: Mon, 1 Jul 2024 23:12:42 -0400 Subject: [PATCH] update centos mirror for cibuildwheel (#265) * use vault.centos.org instead of nonexistent mirror.centos.org * add comment --- pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4471c4d6e..42490cfb0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,4 +87,6 @@ test-requires = "pytest" test-command = "pytest {project}/tests" [tool.cibuildwheel.linux] -before-all = "yum install -y openssl-devel rust cargo openblas-devel" +# mirrorlist.centos.org doesn't exist anymore +# Workaround from https://serverfault.com/a/1161847 +before-all = "sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo && sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo && yum install -y openssl-devel rust cargo openblas-devel"