From d6909e41af4b776e68fb133a31ff086fdaff38ff Mon Sep 17 00:00:00 2001 From: "Dr. Jens Harbott" Date: Sat, 22 Jan 2022 13:54:12 +0100 Subject: [PATCH] Use distro pip on Ubuntu Running get-pip.py fails on Ubuntu when running twice, e.g. after a unstack/stack cycle. Just use distro pip instead. Closes-Bug: #1957048 Signed-off-by: Dr. Jens Harbott Change-Id: I87a8d53ed8860dd017a6c826dee6b6f4baef3c96 --- tools/install_pip.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/install_pip.sh b/tools/install_pip.sh index 259375a150..5d73a1f0d8 100755 --- a/tools/install_pip.sh +++ b/tools/install_pip.sh @@ -129,6 +129,8 @@ if is_fedora && [[ ${DISTRO} == f* || ${DISTRO} == rhel9 ]]; then # For general sanity, we just use the packaged pip. It should be # recent enough anyway. This is included via rpms/general : # Simply fall through +elif is_ubuntu; then + : # pip on Ubuntu 20.04 is new enough, too else install_get_pip fi