Skip to content

Commit b227e0a

Browse files
committed
Update cibuildwheel configuration for Linux to use apt-get for GMP installation
1 parent 92f6236 commit b227e0a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ test-requires = "pytest pyvista scipy meshio"
4444
test-command = "pytest {project}/tests -v"
4545

4646
[tool.cibuildwheel.linux]
47-
before-all = "yum install gmp gmp-devel -y"
47+
before-all = """
48+
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* &&
49+
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* &&
50+
yum install gmp gmp-devel -y
51+
"""
4852
environment = "USE_MAVX='true'"
4953
environment-pass = ["USE_MAVX"]
5054

0 commit comments

Comments
 (0)