Migrate PDFium hooks to use python3.
Bug: chromium:1208028
Change-Id: I866d8bd6e084ef8966091817f7c9f9ce85a189ee
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/86210
Reviewed-by: Daniel Hosseinian <dhoss@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/DEPS b/DEPS
index 93b628f..9393a0b 100644
--- a/DEPS
+++ b/DEPS
@@ -352,7 +352,7 @@
# disabled.
'name': 'disable_depot_tools_selfupdate',
'pattern': '.',
- 'action': [ 'python',
+ 'action': [ 'python3',
'third_party/depot_tools/update_depot_tools_toggle.py',
'--disable',
],
@@ -362,7 +362,7 @@
'name': 'ciopfs_linux',
'pattern': '.',
'condition': 'checkout_win and host_os == "linux"',
- 'action': [ 'python',
+ 'action': [ 'python3',
'third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--no_auth',
@@ -375,21 +375,21 @@
'name': 'win_toolchain',
'pattern': '.',
'condition': 'checkout_win',
- 'action': ['python', 'build/vs_toolchain.py', 'update', '--force'],
+ 'action': ['python3', 'build/vs_toolchain.py', 'update', '--force'],
},
{
# Update the Mac toolchain if necessary.
'name': 'mac_toolchain',
'pattern': '.',
'condition': 'checkout_mac',
- 'action': ['python', 'build/mac_toolchain.py'],
+ 'action': ['python3', 'build/mac_toolchain.py'],
},
# Pull clang-format binaries using checked-in hashes.
{
'name': 'clang_format_win',
'pattern': '.',
'condition': 'host_os == "win"',
- 'action': [ 'python',
+ 'action': [ 'python3',
'third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--no_auth',
@@ -401,7 +401,7 @@
'name': 'clang_format_mac',
'pattern': '.',
'condition': 'host_os == "mac"',
- 'action': [ 'python',
+ 'action': [ 'python3',
'third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--no_auth',
@@ -413,7 +413,7 @@
'name': 'clang_format_linux',
'pattern': '.',
'condition': 'host_os == "linux"',
- 'action': [ 'python',
+ 'action': [ 'python3',
'third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--no_auth',
@@ -425,7 +425,7 @@
# Note: On Win, this should run after win_toolchain, as it may use it.
'name': 'clang',
'pattern': '.',
- 'action': ['python',
+ 'action': ['python3',
'tools/clang/scripts/update.py'
],
},
@@ -433,42 +433,42 @@
'name': 'sysroot_arm',
'pattern': '.',
'condition': 'checkout_linux and checkout_arm',
- 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py',
+ 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
'--arch=arm'],
},
{
'name': 'sysroot_arm64',
'pattern': '.',
'condition': 'checkout_linux and checkout_arm64',
- 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py',
+ 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
'--arch=arm64'],
},
{
'name': 'sysroot_x86',
'pattern': '.',
'condition': 'checkout_linux and (checkout_x86 or checkout_x64)',
- 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py',
+ 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
'--arch=x86'],
},
{
'name': 'sysroot_mips',
'pattern': '.',
'condition': 'checkout_linux and checkout_mips',
- 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py',
+ 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
'--arch=mips'],
},
{
'name': 'sysroot_x64',
'pattern': '.',
'condition': 'checkout_linux and checkout_x64',
- 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py',
+ 'action': ['python3', 'build/linux/sysroot_scripts/install-sysroot.py',
'--arch=x64'],
},
{
'name': 'msan_chained_origins',
'pattern': '.',
'condition': 'checkout_instrumented_libraries',
- 'action': [ 'python',
+ 'action': [ 'python3',
'third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--no_auth',
@@ -480,7 +480,7 @@
'name': 'msan_no_origins',
'pattern': '.',
'condition': 'checkout_instrumented_libraries',
- 'action': [ 'python',
+ 'action': [ 'python3',
'third_party/depot_tools/download_from_google_storage.py',
'--no_resume',
'--no_auth',
@@ -492,7 +492,7 @@
# Update LASTCHANGE.
'name': 'lastchange',
'pattern': '.',
- 'action': ['python', 'build/util/lastchange.py',
+ 'action': ['python3', 'build/util/lastchange.py',
'-o', 'build/util/LASTCHANGE'],
},
]