From 721cbba4707ec62dc1a29551380bfc0b8f4ffa49 Mon Sep 17 00:00:00 2001 From: Vlado Djerek Date: Wed, 2 Oct 2024 16:27:24 +0200 Subject: [PATCH] add virtualenv to bypass system packages requirement with pip. Bump pyYAML (#32625) --- playground/infrastructure/cloudbuild/playground_cd_examples.sh | 3 +++ playground/infrastructure/requirements.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/playground/infrastructure/cloudbuild/playground_cd_examples.sh b/playground/infrastructure/cloudbuild/playground_cd_examples.sh index 64e7ddaa660a..d05773656b30 100644 --- a/playground/infrastructure/cloudbuild/playground_cd_examples.sh +++ b/playground/infrastructure/cloudbuild/playground_cd_examples.sh @@ -99,6 +99,9 @@ apt install -y apt-transport-https ca-certificates software-properties-common cu add-apt-repository -y ppa:deadsnakes/ppa > /dev/null 2>&1 && apt update > /dev/null 2>&1 apt install -y python3.8 python3.8-distutils python3-pip > /dev/null 2>&1 apt install -y --reinstall python3.8-distutils > /dev/null 2>&1 +apt install -y python3-virtualenv +virtualenv play_venv +source play_venv/bin/activate pip install --upgrade google-api-python-client > /dev/null 2>&1 python3.8 -m pip install pip --upgrade > /dev/null 2>&1 ln -s /usr/bin/python3.8 /usr/bin/python > /dev/null 2>&1 diff --git a/playground/infrastructure/requirements.txt b/playground/infrastructure/requirements.txt index 16297f1fdc54..62f5f88255ef 100644 --- a/playground/infrastructure/requirements.txt +++ b/playground/infrastructure/requirements.txt @@ -19,7 +19,7 @@ mock==4.0.3 pytest==6.2.5 pytest-asyncio==0.18.2 pytest-mock==3.6.1 -PyYAML==6.0 +PyYAML==6.0.2 tqdm~=4.62.3 sonora==0.2.2 pydantic==1.10.13