Skip to content

Commit

Permalink
GH #755 - Use Python 3.12 on Ubuntu 24.04.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsuch committed Dec 20, 2024
1 parent 3b68c12 commit f6105d3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/_install-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ then
sudo ln -sf /usr/sbin/haproxy /usr/bin/haproxy
fi

# Make sure we use Python 3.12 under Ubuntu 24.04
if [[ "$(lsb_release -sir)" =~ '24.04' ]]
then
if [[ "$PY_BINARY" == "python3" ]]; then
PY_BINARY=python3.12
fi
fi

# Needed for Ubuntu 24.04+
sudo rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED

Expand Down

0 comments on commit f6105d3

Please sign in to comment.