From 782a68d78cbbbfd2a996e8ec4b00fd868091d3a4 Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 21 Oct 2024 14:55:51 -0400 Subject: [PATCH] ubuntu why? --- .github/workflows/distro_tests.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/distro_tests.yml b/.github/workflows/distro_tests.yml index 3c8117ffeb..90302cc757 100644 --- a/.github/workflows/distro_tests.yml +++ b/.github/workflows/distro_tests.yml @@ -28,21 +28,15 @@ jobs: # Install necessary Perl modules for debconf apt-get install -y libterm-readline-gnu-perl libterm-readline-perl-perl if [ "$VERSION_ID" = "24.04" ]; then - # Install Python 3.12 and its components directly from Ubuntu repositories - apt-get install -y python3.12 python3.12-venv - + apt-get install -y python3.11 python3.11-venv else - # Add deadsnakes PPA for Python 3.12 add-apt-repository ppa:deadsnakes/ppa apt-get update - apt-get install -y python3.12 python3.12-venv python3.12-distutils + apt-get install -y python3.11 python3.11-venv python3.11-distutils fi - # Install pip for Python 3.12 - curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12 - # Update alternatives to use python3.12 - update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1 - update-alternatives --set python3 /usr/bin/python3.12 - python3 -m pip install --upgrade pip + curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11 + update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 + update-alternatives --set python3 /usr/bin/python3.11 python3 -m pip install pipx --break-system-packages elif [ "$ID" = "alpine" ]; then apk add --no-cache bash python3 py3-pip gcc g++ musl-dev libffi-dev