Skip to content

Commit 45feb92

Browse files
committed
Add GMP dependency installation for Linux and remove yum command from cibuildwheel config
1 parent 574f193 commit 45feb92

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/build-and-deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ jobs:
4242
echo "GMP_INC=C:\Miniconda\envs\test\Library\include" >> ${env:GITHUB_ENV}
4343
echo "GMP_LIB=C:\Miniconda\envs\test\Library\lib" >> ${env:GITHUB_ENV}
4444
45+
- name: Install GMP dependencies (Linux)
46+
if: runner.os == 'Linux'
47+
run: |
48+
sudo apt-get update
49+
sudo apt-get install -y libgmp-dev
50+
4551
- name: Build wheels
4652
uses: pypa/cibuildwheel@v2.16.5
4753

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ 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"
4847
environment = "USE_MAVX='true'"
4948
environment-pass = ["USE_MAVX"]
5049

0 commit comments

Comments
 (0)