mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00
DEPS: use python3
Bug: chromium:1208028 Change-Id: I1117855556e4a9e7cbaf54764c8a23c5b8581ded Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/239160 Auto-Submit: Takuto Ikuta <tikuta@google.com> Reviewed-by: Jeremy Leconte <jleconte@google.com> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35426}
This commit is contained in:
parent
ef5b21e637
commit
9345bee860
3 changed files with 42 additions and 38 deletions
|
@ -27,8 +27,8 @@ python_version: "3.8"
|
||||||
# Used by:
|
# Used by:
|
||||||
# third_party/catapult
|
# third_party/catapult
|
||||||
wheel: <
|
wheel: <
|
||||||
name: "infra/python/wheels/psutil/${platform}_${py_python}_${py_abi}"
|
name: "infra/python/wheels/psutil/${vpython_platform}"
|
||||||
version: "version:5.2.2"
|
version: "version:5.8.0.chromium.2"
|
||||||
>
|
>
|
||||||
|
|
||||||
# Used by tools_webrtc/perf/webrtc_dashboard_upload.py.
|
# Used by tools_webrtc/perf/webrtc_dashboard_upload.py.
|
||||||
|
@ -40,8 +40,8 @@ wheel: <
|
||||||
# Used by:
|
# Used by:
|
||||||
# build/toolchain/win
|
# build/toolchain/win
|
||||||
wheel: <
|
wheel: <
|
||||||
name: "infra/python/wheels/pypiwin32/${vpython_platform}"
|
name: "infra/python/wheels/pywin32/${vpython_platform}"
|
||||||
version: "version:219"
|
version: "version:300"
|
||||||
match_tag: <
|
match_tag: <
|
||||||
platform: "win32"
|
platform: "win32"
|
||||||
>
|
>
|
||||||
|
|
38
DEPS
38
DEPS
|
@ -2408,7 +2408,7 @@ hooks = [
|
||||||
'name': 'landmines',
|
'name': 'landmines',
|
||||||
'pattern': '.',
|
'pattern': '.',
|
||||||
'action': [
|
'action': [
|
||||||
'python',
|
'python3',
|
||||||
'src/build/landmines.py',
|
'src/build/landmines.py',
|
||||||
'--landmine-scripts',
|
'--landmine-scripts',
|
||||||
'src/tools_webrtc/get_landmines.py',
|
'src/tools_webrtc/get_landmines.py',
|
||||||
|
@ -2422,7 +2422,7 @@ hooks = [
|
||||||
'name': 'disable_depot_tools_selfupdate',
|
'name': 'disable_depot_tools_selfupdate',
|
||||||
'pattern': '.',
|
'pattern': '.',
|
||||||
'action': [
|
'action': [
|
||||||
'python',
|
'python3',
|
||||||
'src/third_party/depot_tools/update_depot_tools_toggle.py',
|
'src/third_party/depot_tools/update_depot_tools_toggle.py',
|
||||||
'--disable',
|
'--disable',
|
||||||
],
|
],
|
||||||
|
@ -2431,14 +2431,14 @@ hooks = [
|
||||||
'name': 'sysroot_arm',
|
'name': 'sysroot_arm',
|
||||||
'pattern': '.',
|
'pattern': '.',
|
||||||
'condition': 'checkout_linux and checkout_arm',
|
'condition': 'checkout_linux and checkout_arm',
|
||||||
'action': ['python', 'src/build/linux/sysroot_scripts/install-sysroot.py',
|
'action': ['python3', 'src/build/linux/sysroot_scripts/install-sysroot.py',
|
||||||
'--arch=arm'],
|
'--arch=arm'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'name': 'sysroot_arm64',
|
'name': 'sysroot_arm64',
|
||||||
'pattern': '.',
|
'pattern': '.',
|
||||||
'condition': 'checkout_linux and checkout_arm64',
|
'condition': 'checkout_linux and checkout_arm64',
|
||||||
'action': ['python', 'src/build/linux/sysroot_scripts/install-sysroot.py',
|
'action': ['python3', 'src/build/linux/sysroot_scripts/install-sysroot.py',
|
||||||
'--arch=arm64'],
|
'--arch=arm64'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -2446,7 +2446,7 @@ hooks = [
|
||||||
'pattern': '.',
|
'pattern': '.',
|
||||||
'condition': 'checkout_linux and (checkout_x86 or checkout_x64)',
|
'condition': 'checkout_linux and (checkout_x86 or checkout_x64)',
|
||||||
# TODO(mbonadei): change to --arch=x86.
|
# TODO(mbonadei): change to --arch=x86.
|
||||||
'action': ['python', 'src/build/linux/sysroot_scripts/install-sysroot.py',
|
'action': ['python3', 'src/build/linux/sysroot_scripts/install-sysroot.py',
|
||||||
'--arch=i386'],
|
'--arch=i386'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -2454,7 +2454,7 @@ hooks = [
|
||||||
'pattern': '.',
|
'pattern': '.',
|
||||||
'condition': 'checkout_linux and checkout_mips',
|
'condition': 'checkout_linux and checkout_mips',
|
||||||
# TODO(mbonadei): change to --arch=mips.
|
# TODO(mbonadei): change to --arch=mips.
|
||||||
'action': ['python', 'src/build/linux/sysroot_scripts/install-sysroot.py',
|
'action': ['python3', 'src/build/linux/sysroot_scripts/install-sysroot.py',
|
||||||
'--arch=mipsel'],
|
'--arch=mipsel'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -2462,7 +2462,7 @@ hooks = [
|
||||||
'pattern': '.',
|
'pattern': '.',
|
||||||
'condition': 'checkout_linux and checkout_x64',
|
'condition': 'checkout_linux and checkout_x64',
|
||||||
# TODO(mbonadei): change to --arch=x64.
|
# TODO(mbonadei): change to --arch=x64.
|
||||||
'action': ['python', 'src/build/linux/sysroot_scripts/install-sysroot.py',
|
'action': ['python3', 'src/build/linux/sysroot_scripts/install-sysroot.py',
|
||||||
'--arch=amd64'],
|
'--arch=amd64'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -2470,7 +2470,7 @@ hooks = [
|
||||||
'name': 'ciopfs_linux',
|
'name': 'ciopfs_linux',
|
||||||
'pattern': '.',
|
'pattern': '.',
|
||||||
'condition': 'checkout_win and host_os == "linux"',
|
'condition': 'checkout_win and host_os == "linux"',
|
||||||
'action': [ 'python',
|
'action': [ 'python3',
|
||||||
'src/third_party/depot_tools/download_from_google_storage.py',
|
'src/third_party/depot_tools/download_from_google_storage.py',
|
||||||
'--no_resume',
|
'--no_resume',
|
||||||
'--no_auth',
|
'--no_auth',
|
||||||
|
@ -2483,14 +2483,14 @@ hooks = [
|
||||||
'name': 'win_toolchain',
|
'name': 'win_toolchain',
|
||||||
'pattern': '.',
|
'pattern': '.',
|
||||||
'condition': 'checkout_win',
|
'condition': 'checkout_win',
|
||||||
'action': ['python', 'src/build/vs_toolchain.py', 'update', '--force'],
|
'action': ['python3', 'src/build/vs_toolchain.py', 'update', '--force'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
# Update the Mac toolchain if necessary.
|
# Update the Mac toolchain if necessary.
|
||||||
'name': 'mac_toolchain',
|
'name': 'mac_toolchain',
|
||||||
'pattern': '.',
|
'pattern': '.',
|
||||||
'condition': 'checkout_mac',
|
'condition': 'checkout_mac',
|
||||||
'action': ['python', 'src/build/mac_toolchain.py'],
|
'action': ['python3', 'src/build/mac_toolchain.py'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
# Note: On Win, this should run after win_toolchain, as it may use it.
|
# Note: On Win, this should run after win_toolchain, as it may use it.
|
||||||
|
@ -2502,7 +2502,7 @@ hooks = [
|
||||||
# Update LASTCHANGE.
|
# Update LASTCHANGE.
|
||||||
'name': 'lastchange',
|
'name': 'lastchange',
|
||||||
'pattern': '.',
|
'pattern': '.',
|
||||||
'action': ['python', 'src/build/util/lastchange.py',
|
'action': ['python3', 'src/build/util/lastchange.py',
|
||||||
'-o', 'src/build/util/LASTCHANGE'],
|
'-o', 'src/build/util/LASTCHANGE'],
|
||||||
},
|
},
|
||||||
# Pull clang-format binaries using checked-in hashes.
|
# Pull clang-format binaries using checked-in hashes.
|
||||||
|
@ -2547,7 +2547,7 @@ hooks = [
|
||||||
'name': 'rc_win',
|
'name': 'rc_win',
|
||||||
'pattern': '.',
|
'pattern': '.',
|
||||||
'condition': 'checkout_win and host_os == "win"',
|
'condition': 'checkout_win and host_os == "win"',
|
||||||
'action': [ 'python',
|
'action': [ 'python3',
|
||||||
'src/third_party/depot_tools/download_from_google_storage.py',
|
'src/third_party/depot_tools/download_from_google_storage.py',
|
||||||
'--no_resume',
|
'--no_resume',
|
||||||
'--no_auth',
|
'--no_auth',
|
||||||
|
@ -2559,7 +2559,7 @@ hooks = [
|
||||||
'name': 'rc_mac',
|
'name': 'rc_mac',
|
||||||
'pattern': '.',
|
'pattern': '.',
|
||||||
'condition': 'checkout_win and host_os == "mac"',
|
'condition': 'checkout_win and host_os == "mac"',
|
||||||
'action': [ 'python',
|
'action': [ 'python3',
|
||||||
'src/third_party/depot_tools/download_from_google_storage.py',
|
'src/third_party/depot_tools/download_from_google_storage.py',
|
||||||
'--no_resume',
|
'--no_resume',
|
||||||
'--no_auth',
|
'--no_auth',
|
||||||
|
@ -2571,7 +2571,7 @@ hooks = [
|
||||||
'name': 'rc_linux',
|
'name': 'rc_linux',
|
||||||
'pattern': '.',
|
'pattern': '.',
|
||||||
'condition': 'checkout_win and host_os == "linux"',
|
'condition': 'checkout_win and host_os == "linux"',
|
||||||
'action': [ 'python',
|
'action': [ 'python3',
|
||||||
'src/third_party/depot_tools/download_from_google_storage.py',
|
'src/third_party/depot_tools/download_from_google_storage.py',
|
||||||
'--no_resume',
|
'--no_resume',
|
||||||
'--no_auth',
|
'--no_auth',
|
||||||
|
@ -2594,7 +2594,7 @@ hooks = [
|
||||||
'name': 'msan_chained_origins',
|
'name': 'msan_chained_origins',
|
||||||
'pattern': '.',
|
'pattern': '.',
|
||||||
'condition': 'checkout_instrumented_libraries',
|
'condition': 'checkout_instrumented_libraries',
|
||||||
'action': [ 'python',
|
'action': [ 'python3',
|
||||||
'src/third_party/depot_tools/download_from_google_storage.py',
|
'src/third_party/depot_tools/download_from_google_storage.py',
|
||||||
"--no_resume",
|
"--no_resume",
|
||||||
"--no_auth",
|
"--no_auth",
|
||||||
|
@ -2606,7 +2606,7 @@ hooks = [
|
||||||
'name': 'msan_no_origins',
|
'name': 'msan_no_origins',
|
||||||
'pattern': '.',
|
'pattern': '.',
|
||||||
'condition': 'checkout_instrumented_libraries',
|
'condition': 'checkout_instrumented_libraries',
|
||||||
'action': [ 'python',
|
'action': [ 'python3',
|
||||||
'src/third_party/depot_tools/download_from_google_storage.py',
|
'src/third_party/depot_tools/download_from_google_storage.py',
|
||||||
"--no_resume",
|
"--no_resume",
|
||||||
"--no_auth",
|
"--no_auth",
|
||||||
|
@ -2630,7 +2630,7 @@ hooks = [
|
||||||
'name': 'Generate component metadata for tests',
|
'name': 'Generate component metadata for tests',
|
||||||
'pattern': '.',
|
'pattern': '.',
|
||||||
'action': [
|
'action': [
|
||||||
'vpython',
|
'vpython3',
|
||||||
'src/testing/generate_location_tags.py',
|
'src/testing/generate_location_tags.py',
|
||||||
'--out',
|
'--out',
|
||||||
'src/testing/location_tags.json',
|
'src/testing/location_tags.json',
|
||||||
|
@ -2640,8 +2640,8 @@ hooks = [
|
||||||
{
|
{
|
||||||
'name': 'vpython_common',
|
'name': 'vpython_common',
|
||||||
'pattern': '.',
|
'pattern': '.',
|
||||||
'action': [ 'vpython',
|
'action': [ 'vpython3',
|
||||||
'-vpython-spec', 'src/.vpython',
|
'-vpython-spec', 'src/.vpython3',
|
||||||
'-vpython-tool', 'install',
|
'-vpython-tool', 'install',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
|
# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
|
||||||
#
|
#
|
||||||
# Use of this source code is governed by a BSD-style license
|
# Use of this source code is governed by a BSD-style license
|
||||||
|
@ -11,6 +11,9 @@ This file emits the list of reasons why a particular build needs to be clobbered
|
||||||
(or a list of 'landmines').
|
(or a list of 'landmines').
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
from __future__ import print_function
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -27,35 +30,36 @@ def print_landmines(): # pylint: disable=invalid-name
|
||||||
ALL LANDMINES ARE EMITTED FROM HERE.
|
ALL LANDMINES ARE EMITTED FROM HERE.
|
||||||
"""
|
"""
|
||||||
# DO NOT add landmines as part of a regular CL. Landmines are a last-effort
|
# DO NOT add landmines as part of a regular CL. Landmines are a last-effort
|
||||||
# bandaid fix if a CL that got landed has a build dependency bug and all bots
|
# bandaid fix if a CL that got landed has a build dependency bug and all
|
||||||
# need to be cleaned up. If you're writing a new CL that causes build
|
# bots need to be cleaned up. If you're writing a new CL that causes build
|
||||||
# dependency problems, fix the dependency problems instead of adding a
|
# dependency problems, fix the dependency problems instead of adding a
|
||||||
# landmine.
|
# landmine.
|
||||||
# See the Chromium version in src/build/get_landmines.py for usage examples.
|
# See the Chromium version in src/build/get_landmines.py for usage examples.
|
||||||
print 'Clobber to remove out/{Debug,Release}/args.gn (webrtc:5070)'
|
print('Clobber to remove out/{Debug,Release}/args.gn (webrtc:5070)')
|
||||||
if host_os() == 'win':
|
if host_os() == 'win':
|
||||||
print 'Clobber to resolve some issues with corrupt .pdb files on bots.'
|
print('Clobber to resolve some issues with corrupt .pdb files on bots.')
|
||||||
print 'Clobber due to corrupt .pdb files (after #14623)'
|
print('Clobber due to corrupt .pdb files (after #14623)')
|
||||||
print 'Clobber due to Win 64-bit Debug linking error (crbug.com/668961)'
|
print(
|
||||||
|
'Clobber due to Win 64-bit Debug linking error (crbug.com/668961)')
|
||||||
print('Clobber due to Win Clang Debug linking errors in '
|
print('Clobber due to Win Clang Debug linking errors in '
|
||||||
'https://codereview.webrtc.org/2786603002')
|
'https://codereview.webrtc.org/2786603002')
|
||||||
print('Clobber due to Win Debug linking errors in '
|
print('Clobber due to Win Debug linking errors in '
|
||||||
'https://codereview.webrtc.org/2832063003/')
|
'https://codereview.webrtc.org/2832063003/')
|
||||||
print 'Clobber win x86 bots (issues with isolated files).'
|
print('Clobber win x86 bots (issues with isolated files).')
|
||||||
if host_os() == 'mac':
|
if host_os() == 'mac':
|
||||||
print 'Clobber due to iOS compile errors (crbug.com/694721)'
|
print('Clobber due to iOS compile errors (crbug.com/694721)')
|
||||||
print 'Clobber to unblock https://codereview.webrtc.org/2709573003'
|
print('Clobber to unblock https://codereview.webrtc.org/2709573003')
|
||||||
print('Clobber to fix https://codereview.webrtc.org/2709573003 after '
|
print('Clobber to fix https://codereview.webrtc.org/2709573003 after '
|
||||||
'landing')
|
'landing')
|
||||||
print('Clobber to fix https://codereview.webrtc.org/2767383005 before'
|
print('Clobber to fix https://codereview.webrtc.org/2767383005 before'
|
||||||
'landing (changing rtc_executable -> rtc_test on iOS)')
|
'landing (changing rtc_executable -> rtc_test on iOS)')
|
||||||
print('Clobber to fix https://codereview.webrtc.org/2767383005 before'
|
print('Clobber to fix https://codereview.webrtc.org/2767383005 before'
|
||||||
'landing (changing rtc_executable -> rtc_test on iOS)')
|
'landing (changing rtc_executable -> rtc_test on iOS)')
|
||||||
print 'Another landmine for low_bandwidth_audio_test (webrtc:7430)'
|
print('Another landmine for low_bandwidth_audio_test (webrtc:7430)')
|
||||||
print 'Clobber to change neteq_rtpplay type to executable'
|
print('Clobber to change neteq_rtpplay type to executable')
|
||||||
print 'Clobber to remove .xctest files.'
|
print('Clobber to remove .xctest files.')
|
||||||
print 'Clobber to remove .xctest files (take 2).'
|
print('Clobber to remove .xctest files (take 2).')
|
||||||
print 'Switching rtc_executable to rtc_test'
|
print('Switching rtc_executable to rtc_test')
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Loading…
Reference in a new issue