From 5bb4de0deae6c6da5fb43b420712031c6ba83551 Mon Sep 17 00:00:00 2001 From: Martin Tzvetanov Grigorov Date: Tue, 29 Oct 2024 15:38:21 +0200 Subject: [PATCH] Use update-alternatives to set Python3.12 as system-default Signed-off-by: Martin Tzvetanov Grigorov --- .github/workflows/test-lang-py-ARM.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-lang-py-ARM.yml b/.github/workflows/test-lang-py-ARM.yml index abc90c73e2f..5e27a0dd1e5 100644 --- a/.github/workflows/test-lang-py-ARM.yml +++ b/.github/workflows/test-lang-py-ARM.yml @@ -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