瀏覽代碼

Add vpython to depot_tools for linux and mac

BUG=717208
R=dnj@chromium.org

Change-Id: If937a382be9aa4d8eb5f957386e8b1b28cc1c3ac
Reviewed-on: https://chromium-review.googlesource.com/492086
Reviewed-by: Daniel Jacques <dnj@chromium.org>
Reviewed-by: Nodir Turakulov <nodir@chromium.org>
Commit-Queue: Sergey Berezin <sergeyberezin@chromium.org>
Sergey Berezin 8 年之前
父節點
當前提交
6fee2673e9
共有 4 個文件被更改,包括 32 次插入0 次删除
  1. 4 0
      .gitignore
  2. 10 0
      cipd_bin_setup.sh
  3. 6 0
      cipd_manifest.txt
  4. 12 0
      vpython

+ 4 - 0
.gitignore

@@ -2,6 +2,7 @@
 *.pyc
 *.pyc
 
 
 # ignore cipd client files
 # ignore cipd client files
+/.cipd_bin
 /.cipd_client*
 /.cipd_client*
 /.versions
 /.versions
 
 
@@ -67,3 +68,6 @@
 
 
 # Ignore google AE downloaded for running testing only.
 # Ignore google AE downloaded for running testing only.
 testing_support/google_appengine
 testing_support/google_appengine
+
+# Ignore emacs / vim backup files.
+*~

+ 10 - 0
cipd_bin_setup.sh

@@ -0,0 +1,10 @@
+# Copyright 2017 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.
+
+function cipd_bin_setup {
+    local MYPATH=$(dirname "${BASH_SOURCE[0]}")
+
+    "$MYPATH/cipd" ensure -ensure-file "$MYPATH/cipd_manifest.txt" \
+        -root "$MYPATH/.cipd_bin"
+}

+ 6 - 0
cipd_manifest.txt

@@ -0,0 +1,6 @@
+# Copyright 2017 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.
+
+# vpython.
+infra/tools/luci/vpython/${platform}  git_revision:589bb41ab0ab9134d2555d7d3051d678d37b3238

+ 12 - 0
vpython

@@ -0,0 +1,12 @@
+#/bin/bash
+
+# Copyright 2017 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.
+
+MYPATH=$(dirname "${BASH_SOURCE[0]}")
+
+source "$MYPATH/cipd_bin_setup.sh"
+cipd_bin_setup
+
+exec "$MYPATH/.cipd_bin/vpython" "$@"