From f3e0c66bdb8104a97b2514236c95784f2dbaddc8 Mon Sep 17 00:00:00 2001 From: Josh Radcliff Date: Fri, 7 Aug 2026 11:01:37 -0400 Subject: [PATCH] chore(release): use venv to run with a clean environment The system-level Python packages in the runner contain some outdated dependencies that lead to errors. Using venv provides a clean environment that only contains the dependencies we need. Change-Id: I2bd601adaa5feee463e5f929765bf6ebd8512c3b --- .kokoro/release.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.kokoro/release.sh b/.kokoro/release.sh index 48912cf..2770d80 100755 --- a/.kokoro/release.sh +++ b/.kokoro/release.sh @@ -13,6 +13,10 @@ echo "=== Building and Releasing from: ${REPO_DIR} ===" # ----------------------------------------------------------------------------- # 2. Environment & Tooling Setup # ----------------------------------------------------------------------------- +# Setup virtual environment for releasing +python3 -m venv .venv +source ./.venv/bin/activate + # Upgrade pip and install standard Python build and packaging tools python3 -m pip install --upgrade pip python3 -m pip install --upgrade \