From a5080ee72641f316c77dec9ad8c92a1ff4522cd8 Mon Sep 17 00:00:00 2001 From: Vince Prignano Date: Tue, 10 Oct 2023 09:19:35 -0700 Subject: [PATCH] :bug: Fix "error: externally-managed-environment" CI Signed-off-by: Vince Prignano --- scripts/ci-conformance.sh | 5 +---- scripts/ci-e2e-eks-gc.sh | 3 ++- scripts/ci-e2e-eks.sh | 3 ++- scripts/ci-e2e-gc.sh | 3 ++- scripts/ci-e2e.sh | 3 ++- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/scripts/ci-conformance.sh b/scripts/ci-conformance.sh index ae2903675a..e1c3d1a31c 100755 --- a/scripts/ci-conformance.sh +++ b/scripts/ci-conformance.sh @@ -38,12 +38,9 @@ trap cleanup EXIT # Ensure that python3-pip is installed. apt update -apt install -y python3-pip +apt install -y python3-pip python3-requests rm -rf /var/lib/apt/lists/* -# Install/upgrade pip and requests module explicitly for HTTP calls. -python3 -m pip install --upgrade pip requests - # If BOSKOS_HOST is set then acquire an AWS account from Boskos. if [ -n "${BOSKOS_HOST:-}" ]; then # Check out the account from Boskos and store the produced environment diff --git a/scripts/ci-e2e-eks-gc.sh b/scripts/ci-e2e-eks-gc.sh index c73aa66cdd..e9e9329631 100755 --- a/scripts/ci-e2e-eks-gc.sh +++ b/scripts/ci-e2e-eks-gc.sh @@ -47,7 +47,8 @@ cleanup() { trap cleanup EXIT #Install requests module explicitly for HTTP calls -python3 -m pip install requests +apt update +apt install -y python3-pip python3-requests # If BOSKOS_HOST is set then acquire an AWS account from Boskos. if [ -n "${BOSKOS_HOST:-}" ]; then diff --git a/scripts/ci-e2e-eks.sh b/scripts/ci-e2e-eks.sh index c85e3e5720..d15107fc94 100755 --- a/scripts/ci-e2e-eks.sh +++ b/scripts/ci-e2e-eks.sh @@ -47,7 +47,8 @@ cleanup() { trap cleanup EXIT #Install requests module explicitly for HTTP calls -python3 -m pip install requests +apt update +apt install -y python3-pip python3-requests # If BOSKOS_HOST is set then acquire an AWS account from Boskos. if [ -n "${BOSKOS_HOST:-}" ]; then diff --git a/scripts/ci-e2e-gc.sh b/scripts/ci-e2e-gc.sh index c6db8044cf..baccf8525d 100755 --- a/scripts/ci-e2e-gc.sh +++ b/scripts/ci-e2e-gc.sh @@ -47,7 +47,8 @@ cleanup() { trap cleanup EXIT #Install requests module explicitly for HTTP calls -python3 -m pip install requests +apt update +apt install -y python3-pip python3-requests # If BOSKOS_HOST is set then acquire an AWS account from Boskos. if [ -n "${BOSKOS_HOST:-}" ]; then diff --git a/scripts/ci-e2e.sh b/scripts/ci-e2e.sh index 86a84d6d3c..5ddcc697a2 100755 --- a/scripts/ci-e2e.sh +++ b/scripts/ci-e2e.sh @@ -53,7 +53,8 @@ apt install -y python3-pip rm -rf /var/lib/apt/lists/* # Install/upgrade pip and requests module explicitly for HTTP calls. -python3 -m pip install --upgrade pip requests +apt update +apt install -y python3-pip python3-requests # If BOSKOS_HOST is set then acquire an AWS account from Boskos. if [ -n "${BOSKOS_HOST:-}" ]; then