setup-ubuntu.sh: use deadsnakes/ppa if needed
This commit is contained in:
parent
c0499dcf5f
commit
d0f2ed7137
@ -212,6 +212,11 @@ fi
|
|||||||
$SUDO dpkg --add-architecture i386
|
$SUDO dpkg --add-architecture i386
|
||||||
$SUDO apt-get -yq update
|
$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 \
|
$SUDO DEBIAN_FRONTEND=noninteractive \
|
||||||
apt-get install -yq --no-install-recommends $PACKAGES
|
apt-get install -yq --no-install-recommends $PACKAGES
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user