[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 <jansson@google.com>
Reviewed-by: Frank Barchard <fbarchard@google.com>
Commit-Queue: Alex Ovsienko <ovsienko@google.com>
This commit is contained in:
Alex Ovsienko 2026-09-08 17:09:46 -07:00 committed by libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com
parent 7320155784
commit 128b8362d2
2 changed files with 4 additions and 5 deletions

5
.gn
View File

@ -11,9 +11,8 @@ import("//build/dotfile_settings.gni")
# The location of the build configuration file. # The location of the build configuration file.
buildconfig = "//build/config/BUILDCONFIG.gn" buildconfig = "//build/config/BUILDCONFIG.gn"
# The python interpreter to use by default. On Windows, this will look # The hermetic Python interpreter to use by default.
# for python3.exe and python3.bat. script_executable = "//third_party/cpython3/host/bin/python3"
script_executable = "python3"
# The secondary source root is a parallel directory tree where # The secondary source root is a parallel directory tree where
# GN build files are placed when they can not be placed directly # GN build files are placed when they can not be placed directly

4
DEPS
View File

@ -6,7 +6,7 @@ gclient_gn_args = [
vars = { vars = {
'chromium_git': 'https://chromium.googlesource.com', 'chromium_git': 'https://chromium.googlesource.com',
'chromium_revision': '2fec1883d8c89392206801daa91f95eb2f8ab3e1', 'chromium_revision': '2fec1883d8c89392206801daa91f95eb2f8ab3e1',
'gn_version': 'git_revision:304bbef6c7e9a86630c12986b99c8654eb7fe648', 'gn_version': 'git_revision:4f6a76b64b8279e98004f541f8e136307efe5e01',
# ninja CIPD package version. # ninja CIPD package version.
# https://chrome-infra-packages.appspot.com/p/infra/3pp/tools/ninja # https://chrome-infra-packages.appspot.com/p/infra/3pp/tools/ninja
'ninja_version': 'version:3@1.12.1.chromium.4', 'ninja_version': 'version:3@1.12.1.chromium.4',
@ -52,7 +52,7 @@ deps = {
'src/build': 'src/build':
Var('chromium_git') + '/chromium/src/build' + '@' + 'bc3e93b3c459cfa0bb6bef8944b6398bbd9a7be8', Var('chromium_git') + '/chromium/src/build' + '@' + 'bc3e93b3c459cfa0bb6bef8944b6398bbd9a7be8',
'src/buildtools': 'src/buildtools':
Var('chromium_git') + '/chromium/src/buildtools' + '@' + '6a18683f555b4ac8b05ac8395c29c84483ac9588', Var('chromium_git') + '/chromium/src/buildtools' + '@' + '136da69a1267b8db487354b96d44d0cc8add5aeb',
'src/testing': 'src/testing':
Var('chromium_git') + '/chromium/src/testing' + '@' + 'd274a4df83dc1781e42bade23902491faf30a0d2', Var('chromium_git') + '/chromium/src/testing' + '@' + 'd274a4df83dc1781e42bade23902491faf30a0d2',
'src/third_party': 'src/third_party':