Skip to content

Commit

Permalink
update centos mirror for cibuildwheel (#265)
Browse files Browse the repository at this point in the history
* use vault.centos.org instead of nonexistent mirror.centos.org

* add comment
  • Loading branch information
kevinsung authored Jul 2, 2024
1 parent 5638fcf commit cba0a0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit cba0a0a

Please sign in to comment.