Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(812)

Unified Diff: update_depot_tools

Issue 1205873002: Re-land: Added virtualenv for depot_tools (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Supress all output from bootstrap to avoid breaking tools that depend on gclient output Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bootstrap/util.py ('k') | update_depot_tools.bat » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: update_depot_tools
diff --git a/update_depot_tools b/update_depot_tools
index 8528b8bab511e07099a54542c43aac3e58b1f508..e0984c1a0bef55905d68ca4cac78759c9f577b14 100755
--- a/update_depot_tools
+++ b/update_depot_tools
@@ -153,3 +153,17 @@ then
fi
find "$base_dir" -iname "*.pyc" -exec rm {} \;
+
+# Initialize/update virtualenv.
+VIRTUALENV_REPO="https://chromium.googlesource.com/infra/third_party/virtualenv.git"
+VIRTUALENV_REVISION="4243b272823228dde5d18a7400c404ce52fb4cea"
pgervais 2015/06/24 16:31:33 Virtualenv is vendored in infra.git/bootstrap/virt
Sergiy Byelozyorov 2015/06/25 14:42:17 It's checked out with DEPS. I thought 'vendored' m
pgervais 2015/06/25 17:12:02 Yes 'vendored' means copied. The idea behind Glyco
Sergiy Byelozyorov 2015/06/25 17:34:51 Done.
+cd $base_dir
+if [ ! -d bootstrap/virtualenv ]; then
+ echo "Fetching virtualenv from $VIRTUALENV_REPO@$VIRTUALENV_REVISION"
+ eval "$GIT" clone "$VIRTUALENV_REPO" bootstrap/virtualenv --no-checkout --quiet
+ cd bootstrap/virtualenv
+ eval "$GIT" checkout "$VIRTUALENV_REVISION" --quiet
+ cd ../..
+ echo "Done fetching virtualenv"
+fi
+python -u ./bootstrap/bootstrap.py --deps_file bootstrap/deps.pyl --quiet ENV
« no previous file with comments | « bootstrap/util.py ('k') | update_depot_tools.bat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698