setup-ubuntu.sh: install pip2 after everything else

This commit is contained in:
Leonid Pliushch 2021-06-21 20:13:02 +03:00
parent add9833e46
commit fa11a5d7ec
No known key found for this signature in database
GPG Key ID: 45F2964132545795
1 changed files with 5 additions and 5 deletions

View File

@ -200,11 +200,6 @@ else
SUDO="sudo"
fi
# Pip for python2.
curl -L --output /tmp/py2-get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py
$SUDO python2 /tmp/py2-get-pip.py
rm -f /tmp/py2-get-pip.py
# Allow 32-bit packages.
$SUDO dpkg --add-architecture i386
$SUDO apt-get -yq update
@ -212,6 +207,11 @@ $SUDO apt-get -yq update
$SUDO DEBIAN_FRONTEND=noninteractive \
apt-get install -yq --no-install-recommends $PACKAGES
# Pip for python2.
curl -L --output /tmp/py2-get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py
$SUDO python2 /tmp/py2-get-pip.py
rm -f /tmp/py2-get-pip.py
$SUDO locale-gen --purge en_US.UTF-8
echo -e 'LANG="en_US.UTF-8"\nLANGUAGE="en_US:en"\n' | $SUDO tee -a /etc/default/locale