Skip to content

Commit

Permalink
Moved installing of rust to a separte python script
Browse files Browse the repository at this point in the history
  • Loading branch information
jesper-friis committed Aug 15, 2023
1 parent 33d31b4 commit a7a50fc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/install_rust.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# A python script for installing rust in a Linux environment
import subprocess
import sys


if sys.platform.startswith("linux"):
subprocess.run(
"sudo apt install -y rustc cargo && python -m pip install -U poetry",
check=True, shell=True,
)
6 changes: 5 additions & 1 deletion .github/workflows/ci_build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,12 @@ jobs:
# source $HOME/.cargo/env &&
# python -m pip install -U poetry
# ", check=True, shell=True)'
#run: |
# python -c "import sys, subprocess; sys.platform.startswith(\"linux\") and subprocess.run(\"sudo apt install -y rustc cargo && python -m pip install -U poetry\", check=True, shell=True)"
run: |
python -c "import sys, subprocess; sys.platform.startswith(\"linux\") and subprocess.run(\"sudo apt install -y rustc cargo && python -m pip install -U poetry\", check=True, shell=True)"
pwd
ls
python .github/install_rust.py
- name: Install cibuildwheel
run: |
python -m pip install -U setuptools wheel
Expand Down

0 comments on commit a7a50fc

Please sign in to comment.