Răsfoiți Sursa

Revert "depot_tools: Run Python scripts using vpython (Part 2)"

This reverts commit 3c814957ee532260024e544bf10230348bbc4909.

Reason for revert: <INSERT REASONING HERE>

Original change's description:
> depot_tools: Run Python scripts using vpython (Part 2)
> 
> Tbr: iannucci@chromium.org
> Bug: 984182
> Change-Id: I2e8469f8ee0acd6a54109697d5a6b76faf24fa42
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1748590
> Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>

TBR=iannucci@chromium.org,ehmaldonado@chromium.org

Change-Id: Ic683543a04b45f733b48d6c43453fc8dff511d09
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 984182
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1749852
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
Edward Lesmes 6 ani în urmă
părinte
comite
7149d23621
16 a modificat fișierele cu 28 adăugiri și 36 ștergeri
  1. 1 1
      download_from_google_storage
  2. 1 1
      download_from_google_storage.bat
  3. 1 1
      download_from_google_storage.py
  4. 1 1
      fetch
  5. 1 1
      fetch.bat
  6. 1 1
      fetch.py
  7. 13 16
      gclient
  8. 1 1
      gclient-new-workdir.py
  9. 1 6
      gclient.bat
  10. 1 1
      gclient.py
  11. 1 1
      roll-dep
  12. 1 1
      roll-dep-svn
  13. 1 1
      roll-dep-svn.bat
  14. 1 1
      roll-dep.bat
  15. 1 1
      roll_dep.py
  16. 1 1
      roll_dep_svn.py

+ 1 - 1
download_from_google_storage

@@ -5,4 +5,4 @@
 
 base_dir=$(dirname "$0")
 
-PYTHONDONTWRITEBYTECODE=1 exec $base_dir/vpython "$base_dir/download_from_google_storage.py" "$@"
+PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/download_from_google_storage.py" "$@"

+ 1 - 1
download_from_google_storage.bat

@@ -9,4 +9,4 @@ setlocal
 set PATH=%PATH%;%~dp0
 
 :: Defer control.
-%~dp0\vpython "%~dp0\download_from_google_storage.py" %*
+python "%~dp0\download_from_google_storage.py" %*

+ 1 - 1
download_from_google_storage.py

@@ -1,4 +1,4 @@
-#!/usr/bin/env vpython
+#!/usr/bin/env python
 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.

+ 1 - 1
fetch

@@ -5,4 +5,4 @@
 
 base_dir=$(dirname "$0")
 
-PYTHONDONTWRITEBYTECODE=1 exec $base_dir/vpython "$base_dir/fetch.py" "$@"
+PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/fetch.py" "$@"

+ 1 - 1
fetch.bat

@@ -12,4 +12,4 @@ call "%~dp0\update_depot_tools.bat"
 set PATH=%PATH%;%~dp0
 
 :: Defer control.
-%~dp0\vpython "%~dp0\fetch.py" %*
+python "%~dp0\fetch.py" %*

+ 1 - 1
fetch.py

@@ -1,4 +1,4 @@
-#!/usr/bin/env vpython
+#!/usr/bin/env python
 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.

+ 13 - 16
gclient

@@ -5,21 +5,18 @@
 
 base_dir=$(dirname "$0")
 
-# Update depot_tools unless DEPOT_TOOLS_UPDATE is set to 0
-if [ "X$DEPOT_TOOLS_UPDATE" != "X0" ]; then
-  if [[ "#grep#fetch#cleanup#diff#setdep#" != *"#$1#"* ]]; then
-    "$base_dir"/update_depot_tools "$@"
-    case $? in
-      123)
-        # msys environment was upgraded, need to quit.
-        exit 0
-        ;;
-      0)
-        ;;
-      *)
-        exit $?
-    esac
-  fi
+if [[ "#grep#fetch#cleanup#diff#setdep#" != *"#$1#"* ]]; then
+  "$base_dir"/update_depot_tools "$@"
+  case $? in
+    123)
+      # msys environment was upgraded, need to quit.
+      exit 0
+      ;;
+    0)
+      ;;
+    *)
+      exit $?
+  esac
 fi
 
-PYTHONDONTWRITEBYTECODE=1 exec $base_dir/vpython "$base_dir/gclient.py" "$@"
+PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/gclient.py" "$@"

+ 1 - 1
gclient-new-workdir.py

@@ -1,4 +1,4 @@
-#!/usr/bin/env vpython
+#!/usr/bin/env python
 # Copyright 2013 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.

+ 1 - 6
gclient.bat

@@ -4,17 +4,12 @@
 :: found in the LICENSE file.
 setlocal
 
-:: Shall skip automatic update?
-IF "%DEPOT_TOOLS_UPDATE%" == "0" GOTO :SKIP_UPDATE
-
 :: Synchronize the root directory before deferring control back to gclient.py.
 call "%~dp0update_depot_tools.bat" %*
 
-:SKIP_UPDATE
-
 :: Ensure that "depot_tools" is somewhere in PATH so this tool can be used
 :: standalone, but allow other PATH manipulations to take priority.
 set PATH=%PATH%;%~dp0
 
 :: Defer control.
-%~dp0\vpython "%~dp0\gclient.py" %*
+python "%~dp0gclient.py" %*

+ 1 - 1
gclient.py

@@ -1,4 +1,4 @@
-#!/usr/bin/env vpython
+#!/usr/bin/env python
 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.

+ 1 - 1
roll-dep

@@ -5,4 +5,4 @@
 
 base_dir=$(dirname "$0")
 
-PYTHONDONTWRITEBYTECODE=1 exec $base_dir/vpython "$base_dir/roll_dep.py" "$@"
+PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/roll_dep.py" "$@"

+ 1 - 1
roll-dep-svn

@@ -5,4 +5,4 @@
 
 base_dir=$(dirname "$0")
 
-PYTHONDONTWRITEBYTECODE=1 exec $base_dir/vpython "$base_dir/roll_dep_svn.py" "$@"
+PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/roll_dep_svn.py" "$@"

+ 1 - 1
roll-dep-svn.bat

@@ -9,4 +9,4 @@ setlocal
 set PATH=%PATH%;%~dp0
 
 :: Defer control.
-%~dp0\vpython "%~dp0\roll_dep_svn.py" %*
+python "%~dp0\roll_dep_svn.py" %*

+ 1 - 1
roll-dep.bat

@@ -9,4 +9,4 @@ setlocal
 set PATH=%PATH%;%~dp0
 
 :: Defer control.
-%~dp0\vpython "%~dp0\roll_dep.py" %*
+python "%~dp0\roll_dep.py" %*

+ 1 - 1
roll_dep.py

@@ -1,4 +1,4 @@
-#!/usr/bin/env vpython
+#!/usr/bin/env python
 # Copyright 2015 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.

+ 1 - 1
roll_dep_svn.py

@@ -1,4 +1,4 @@
-#!/usr/bin/env vpython
+#!/usr/bin/env python
 # Copyright (c) 2014 The Chromium Authors. All rights reserved.
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.