Make 'compile_single_file' use vpython3

A recent change to autoninja breaks 'compile_single_file' because
autoninja expects to be able to find the 'google.auth' package, which is
available via vpython3.

Change-Id: Ie0c9bc229108daadae27bd85ffc0471d9e7e7fca
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5199126
Commit-Queue: Sébastien Marchand <sebmarchand@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
This commit is contained in:
Sebastien Marchand
2024-01-16 19:04:22 +00:00
committed by LUCI CQ
parent 3d6dda8241
commit f5dd9dda9e
3 changed files with 3 additions and 3 deletions

View File

@@ -5,4 +5,4 @@
base_dir=$(dirname "$0")
PYTHONDONTWRITEBYTECODE=1 exec python3 -u "$base_dir/compile_single_file.py" "$@"
PYTHONDONTWRITEBYTECODE=1 exec vpython3 -u "$base_dir/compile_single_file.py" "$@"

View File

@@ -8,4 +8,4 @@ setlocal
:: standalone, but allow other PATH manipulations to take priority.
set PATH=%PATH%;%~dp0
python3 -u "%~dp0compile_single_file.py" %*
vpython3 -u "%~dp0compile_single_file.py" %*

View File

@@ -58,7 +58,7 @@ def main():
carets = '^^'
command = [
'python3',
sys.executable,
os.path.join(DEPOT_TOOLS_DIR, 'autoninja.py'), '-C', abs_build_dir,
'%s%s' % (src_relpath, carets)
]