Commit 4d34122a authored by Thomas Gambier's avatar Thomas Gambier

slapos_web_deploy: upgrade pip before using it

This is particularly needed for old OS with python2: very old versions of
pip are trying to install latest version of eggs no matter their python2
compatibility whereas pip 20 is making sure to install only python2
compatible eggs.
parent 974c16d3
...@@ -129,9 +129,11 @@ is_package_installed ansible || install_package ansible ...@@ -129,9 +129,11 @@ is_package_installed ansible || install_package ansible
if ! is_ubuntu || [[ $DISTRO = wheezy || $DISTRO == jessie || $DISTRO == stretch || $DISTRO == xenial || $DISTRO == bionic ]]; then if ! is_ubuntu || [[ $DISTRO = wheezy || $DISTRO == jessie || $DISTRO == stretch || $DISTRO == xenial || $DISTRO == bionic ]]; then
is_package_installed python-pip || install_package python-pip is_package_installed python-pip || install_package python-pip
pip install --upgrade "pip < 21.0"
else else
# Ansible is using python3 now # Ansible is using python3 now
is_package_installed python3-pip || install_package python3-pip is_package_installed python3-pip || install_package python3-pip
pip3 install --upgrade pip
fi fi
if is_ubuntu && [[ $DISTRO == focal || $DISTRO == buster ]]; then if is_ubuntu && [[ $DISTRO == focal || $DISTRO == buster ]]; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment