From 128b8362d211df56f501800c3e007552fec9e19c Mon Sep 17 00:00:00 2001 From: Alex Ovsienko Date: Tue, 8 Sep 2026 17:09:46 -0700 Subject: [PATCH] [build] Use hermetic python3 for script_executable in .gn Bug: chromium:537680330 Change-Id: Ic6434b6a04c1b696030ae9deb5ab9974c45a90ee Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/8266462 Reviewed-by: Christoffer Dewerin Reviewed-by: Frank Barchard Commit-Queue: Alex Ovsienko --- .gn | 5 ++--- DEPS | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.gn b/.gn index 0479a7a7f..856e1a649 100644 --- a/.gn +++ b/.gn @@ -11,9 +11,8 @@ import("//build/dotfile_settings.gni") # The location of the build configuration file. buildconfig = "//build/config/BUILDCONFIG.gn" -# The python interpreter to use by default. On Windows, this will look -# for python3.exe and python3.bat. -script_executable = "python3" +# The hermetic Python interpreter to use by default. +script_executable = "//third_party/cpython3/host/bin/python3" # The secondary source root is a parallel directory tree where # GN build files are placed when they can not be placed directly diff --git a/DEPS b/DEPS index eecbbe616..fb25ec79c 100644 --- a/DEPS +++ b/DEPS @@ -6,7 +6,7 @@ gclient_gn_args = [ vars = { 'chromium_git': 'https://chromium.googlesource.com', 'chromium_revision': '2fec1883d8c89392206801daa91f95eb2f8ab3e1', - 'gn_version': 'git_revision:304bbef6c7e9a86630c12986b99c8654eb7fe648', + 'gn_version': 'git_revision:4f6a76b64b8279e98004f541f8e136307efe5e01', # ninja CIPD package version. # https://chrome-infra-packages.appspot.com/p/infra/3pp/tools/ninja 'ninja_version': 'version:3@1.12.1.chromium.4', @@ -52,7 +52,7 @@ deps = { 'src/build': Var('chromium_git') + '/chromium/src/build' + '@' + 'bc3e93b3c459cfa0bb6bef8944b6398bbd9a7be8', 'src/buildtools': - Var('chromium_git') + '/chromium/src/buildtools' + '@' + '6a18683f555b4ac8b05ac8395c29c84483ac9588', + Var('chromium_git') + '/chromium/src/buildtools' + '@' + '136da69a1267b8db487354b96d44d0cc8add5aeb', 'src/testing': Var('chromium_git') + '/chromium/src/testing' + '@' + 'd274a4df83dc1781e42bade23902491faf30a0d2', 'src/third_party':