From 6058be3e48fef2619b1d13e8caae37c21fb448f1 Mon Sep 17 00:00:00 2001 From: Junji Watanabe Date: Tue, 25 Mar 2025 21:54:33 -0700 Subject: [PATCH] siso: Use bundled python to run siso Similar to https://crrev.com/c/6395717, but for siso wrapper. This allows the build steps to use the bundled Python. Change-Id: I57d56622f204cb26e025f164f90c079089314180 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6395718 Auto-Submit: Junji Watanabe Commit-Queue: Junji Watanabe Reviewed-by: Fumitoshi Ukai --- siso | 2 +- siso.bat | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/siso b/siso index 9b27844fda..6754b6eb03 100755 --- a/siso +++ b/siso @@ -5,4 +5,4 @@ # found in the LICENSE file. base_dir=$(dirname "$0") -PYTHONDONTWRITEBYTECODE=1 exec python3 "$base_dir/siso.py" "$@" +PYTHONDONTWRITEBYTECODE=1 exec "$base_dir/python-bin/python3" "$base_dir/siso.py" "$@" diff --git a/siso.bat b/siso.bat index 28b03e49ef..16fa25f1ea 100644 --- a/siso.bat +++ b/siso.bat @@ -8,5 +8,7 @@ setlocal :: standalone, but allow other PATH manipulations to take priority. set PATH=%PATH%;%~dp0 +set scriptdir=%~dp0 + :: Defer control. -python3 "%~dp0\siso.py" "%*" +@call %scriptdir%python-bin\python3 "%~dp0\siso.py" "%*"