setup-ubuntu.sh: use deadsnakes/ppa if needed

This commit is contained in:
Lucy Phipps 2021-10-05 13:24:32 +01:00
parent c0499dcf5f
commit d0f2ed7137
No known key found for this signature in database
GPG Key ID: 8F688A3DB7869BFE

View File

@ -212,6 +212,11 @@ fi
$SUDO dpkg --add-architecture i386
$SUDO apt-get -yq update
# Newer Python versions for host builds
if dpkg --compare-versions $(lsb_release -rs) lt 21.04; then
$SUDO add-apt-repository ppa:deadsnakes/ppa
fi
$SUDO DEBIAN_FRONTEND=noninteractive \
apt-get install -yq --no-install-recommends $PACKAGES