From 97bb0f3d466ed847be867d6db6a4c4cc10888296 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 1 Aug 2022 22:44:00 +0200 Subject: [PATCH] devops: install PIP via pypa.io (#16116) Co-authored-by: Andrey Lushnikov --- browser_patches/docker_build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/browser_patches/docker_build.sh b/browser_patches/docker_build.sh index d4069402cd..a92830dea6 100755 --- a/browser_patches/docker_build.sh +++ b/browser_patches/docker_build.sh @@ -142,13 +142,16 @@ function ensure_docker_container { # fails to run Firefox build scripts. # Install Python3.8 instead on Ubuntu 18.04 as Python3. if [[ "${BUILD_FLAVOR}" == *ubuntu-18.04* ]]; then - apt-get install -y python3.8 python3.8-pip python3.8-distutils + apt-get install -y python3.8 python3.8-distutils # Point python3 to python3.8 update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2 else - apt-get install -y python3 python3-pip python3-distutils + apt-get install -y python3 python3-distutils fi + curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \ + python3 get-pip.py && \ + rm get-pip.py # Create the pwuser and make it passwordless sudoer. adduser --disabled-password --gecos "" pwuser