Skip to content

Commit

Permalink
Use update-alternatives to set Python3.12 as system-default
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g committed Oct 29, 2024
1 parent 1f4d892 commit 5bb4de0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/test-lang-py-ARM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,17 @@ jobs:

- name: Install dependencies
run: |
sudo apt-get update -q
sudo apt-get update -q
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:deadsnakes/ppa
sudo apt-get update -q
sudo apt-get install -q -y python3.12 python3.12-dev python3-pip git libbz2-dev libjansson-dev liblzma-dev libsnappy-dev libzstd-dev
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1
sudo sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.12 2
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 2
sudo update-alternatives --set python /usr/bin/python3.12
sudo update-alternatives --set python3 /usr/bin/python3.12
python3 -m pip install --upgrade pip setuptools tox
- name: Build
Expand Down

0 comments on commit 5bb4de0

Please sign in to comment.