Skip to content

Commit

Permalink
ubuntu why?
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Oct 21, 2024
1 parent 838c781 commit 782a68d
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/distro_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 782a68d

Please sign in to comment.