Provisioning: Latest pip versions don't support Python 2 anymore

We can't upgrade pip anymore to the latest version.
pip 20.3 was the last version of pip that supported Python 2

Change-Id: Idd6d28dd21c81f48b36ec7140f91fe580a2aa87c
Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
This commit is contained in:
Simo Fält
2021-12-01 11:54:08 +02:00
parent 8c378728b4
commit e2c4f825b4

View File

@@ -136,7 +136,7 @@ sudo ln -s /opt/rh/rh-python36/root/usr/bin/python3 /usr/local/bin/python3
sudo ln -s /opt/rh/rh-python36/root/usr/bin/pip3 /usr/local/bin/pip3
# We shouldn't use yum to install virtualenv. The one found from package repo is not
# working, but we can use installed pip
sudo pip install --upgrade pip
sudo pip install --upgrade "pip < 21.0"
sudo pip install virtualenv wheel
# Needed by packaging scripts