Convert all build scripts that fail on py3 in CrOS chroot to py2.
These are all the build-time scripts that fail during a build of chrome
in the CrOS chroot when switching the default action() to python3.
Bug: 1112471
Tbr: [email protected]
Change-Id: Ie8bf6a0ad0dbf29f75ada7f41f864177f5ef543a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2783231
Reviewed-by: Dirk Pranke <[email protected]>
Reviewed-by: Ben Pastene <[email protected]>
Commit-Queue: Ben Pastene <[email protected]>
Cr-Commit-Position: refs/heads/master@{#866878}
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index c951cb3..b6ba304 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -11,6 +11,7 @@
import("//build/config/crypto.gni")
import("//build/config/features.gni")
import("//build/config/linux/gtk/gtk.gni")
+import("//build/config/python.gni")
import("//build/config/ui.gni")
import("//chrome/browser/buildflags.gni")
import("//chrome/browser/downgrade/buildflags.gni")
@@ -6659,7 +6660,8 @@
}
}
-action("expired_flags_list_gen") {
+# TODO(crbug.com/1112471): Get this to run cleanly under Python 3.
+python2_action("expired_flags_list_gen") {
script = "//tools/flags/generate_expired_list.py"
sources = [ "flag-metadata.json" ]
inputs = [ "//chrome/VERSION" ]