From 28ce69c2744a6aafdb58564e7b884aec3f66be5f Mon Sep 17 00:00:00 2001 From: Alex Ovsienko Date: Wed, 19 Aug 2026 20:17:47 -0700 Subject: [PATCH] [DEPS] Add CPython CIPD package for hermetic Python toolchain Add src/third_party/cpython3 CIPD packages for Linux and host platforms ('\''infra/3pp/tools/cpython3/${platform}'\'' at '\''version:3@3.11.9.chromium.38'\''). This enables hermetic Python execution in Siso builds where Siso configs inherited from build/ require the hermetic Python binary at src/third_party/cpython3/linux-amd64/bin/python3 on remote workers. Bug: chromium:537680330 Change-Id: I439b2af56dcc5f325ec6f3dbe2837cf550e5c0d2 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/8266781 Reviewed-by: Mirko Bonadei Reviewed-by: Wan-Teh Chang Commit-Queue: Alex Ovsienko --- DEPS | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/DEPS b/DEPS index 837654f0e..eecbbe616 100644 --- a/DEPS +++ b/DEPS @@ -14,6 +14,8 @@ vars = { 'reclient_version': 're_client_version:0.185.0.db415f21-gomaip', # siso CIPD package version. 'siso_version': 'git_revision:9863d88c26094a24fb848f8994da81e005810c76', + # CPython 3 CIPD package version for Siso hermetic toolchain. + 'cpython3_version': 'version:3@3.11.9.chromium.38', # Fetch configuration files required for the 'use_remoteexec' gn arg 'download_remoteexec_cfg': False, # RBE instance to use for running remote builds @@ -349,6 +351,29 @@ deps = { ], 'dep_type': 'cipd', }, + # Always download Linux x64 package regardless of host OS for RBE workers. + 'src/third_party/cpython3/linux-amd64': { + 'packages': [ + { + 'package': 'infra/3pp/tools/cpython3/linux-amd64', + 'version': Var('cpython3_version'), + }, + ], + 'condition': 'non_git_source', + 'dep_type': 'cipd', + }, + + # Host platform package. + 'src/third_party/cpython3/host': { + 'packages': [ + { + 'package': 'infra/3pp/tools/cpython3/${{platform}}', + 'version': Var('cpython3_version'), + }, + ], + 'condition': 'non_git_source', + 'dep_type': 'cipd', + }, 'src/third_party/mockito/src': { 'url': Var('chromium_git') + '/external/mockito/mockito.git' + '@' + '7c3641bcef717ffa7d765f2c86b847d0aab1aac9', 'condition': 'checkout_android',