Use Python version bundled with depot_tools for all scripts
depot_tools ships a "vpython" binary that is added to the $PATH
for all Chromium engineers. This binary is versioned by depot_tools
which we roll in ourselves as part of `gclient sync`.
By using `vpython` instead of `python`, we are no longer depended
on the Python version installed locally and instead use the version
we pull in from DEPS.
[email protected]
Change-Id: If49a54c24b6cf129ff843cd9ca1140a723a78afb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2571462
Reviewed-by: Liviu Rau <[email protected]>
Commit-Queue: Tim van der Lippe <[email protected]>
diff --git a/scripts/deps/download_chromium.py b/scripts/deps/download_chromium.py
index 983bca6..ae1c519 100755
--- a/scripts/deps/download_chromium.py
+++ b/scripts/deps/download_chromium.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env vpython
#
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
diff --git a/scripts/deps/download_emscripten.py b/scripts/deps/download_emscripten.py
index 0763827..4b7feb4 100644
--- a/scripts/deps/download_emscripten.py
+++ b/scripts/deps/download_emscripten.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env vpython
#
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
diff --git a/scripts/deps/ensure_symlink.py b/scripts/deps/ensure_symlink.py
index 1db12df..c84280c 100644
--- a/scripts/deps/ensure_symlink.py
+++ b/scripts/deps/ensure_symlink.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env vpython
#
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
diff --git a/scripts/deps/generate_protocol_resources.py b/scripts/deps/generate_protocol_resources.py
index f67ed19..ace54f0 100755
--- a/scripts/deps/generate_protocol_resources.py
+++ b/scripts/deps/generate_protocol_resources.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env vpython
#
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
diff --git a/scripts/deps/manage_node_deps.py b/scripts/deps/manage_node_deps.py
index c40191f..828871b 100755
--- a/scripts/deps/manage_node_deps.py
+++ b/scripts/deps/manage_node_deps.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env vpython
#
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
diff --git a/scripts/deps/roll-puppeteer-into-frontend.py b/scripts/deps/roll-puppeteer-into-frontend.py
index b24b8f2..c8671ba 100755
--- a/scripts/deps/roll-puppeteer-into-frontend.py
+++ b/scripts/deps/roll-puppeteer-into-frontend.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env vpython
#
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
diff --git a/scripts/deps/roll_deps.py b/scripts/deps/roll_deps.py
index d3282ac..fe8f5ea 100755
--- a/scripts/deps/roll_deps.py
+++ b/scripts/deps/roll_deps.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env vpython
#
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
diff --git a/scripts/deps/roll_to_chromium.py b/scripts/deps/roll_to_chromium.py
index c8ce6a3..c68d9a6 100755
--- a/scripts/deps/roll_to_chromium.py
+++ b/scripts/deps/roll_to_chromium.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env vpython
#
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be