OLD | NEW |
---|---|
1 #!/usr/bin/env bash | 1 #!/usr/bin/env bash |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 # This script will try to sync the bootstrap directories and then defer control. | 6 # This script will try to sync the bootstrap directories and then defer control. |
7 | 7 |
8 if [ "$USER" == "root" ]; | 8 if [ "$USER" == "root" ]; |
9 then | 9 then |
10 echo Running depot tools as root is sad. | 10 echo Running depot tools as root is sad. |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
146 "$SVN" -q up "$base_dir" | 146 "$SVN" -q up "$base_dir" |
147 AFTER_REVISION=$(get_svn_revision) | 147 AFTER_REVISION=$(get_svn_revision) |
148 if [[ "$BEFORE_REVISION" != "$AFTER_REVISION" ]]; then | 148 if [[ "$BEFORE_REVISION" != "$AFTER_REVISION" ]]; then |
149 if [ -z "$DEPOT_TOOLS_HIDE_UPDATED_MESSAGE" ]; then | 149 if [ -z "$DEPOT_TOOLS_HIDE_UPDATED_MESSAGE" ]; then |
150 echo "Depot Tools has been updated to revision $AFTER_REVISION." 1>&2 | 150 echo "Depot Tools has been updated to revision $AFTER_REVISION." 1>&2 |
151 fi | 151 fi |
152 fi | 152 fi |
153 fi | 153 fi |
154 | 154 |
155 find "$base_dir" -iname "*.pyc" -exec rm {} \; | 155 find "$base_dir" -iname "*.pyc" -exec rm {} \; |
156 | |
157 # Initialize/update virtualenv. | |
158 VIRTUALENV_REPO="https://chromium.googlesource.com/infra/third_party/virtualenv. git" | |
159 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.
| |
160 cd $base_dir | |
161 if [ ! -d bootstrap/virtualenv ]; then | |
162 echo "Fetching virtualenv from $VIRTUALENV_REPO@$VIRTUALENV_REVISION" | |
163 eval "$GIT" clone "$VIRTUALENV_REPO" bootstrap/virtualenv --no-checkout --quie t | |
164 cd bootstrap/virtualenv | |
165 eval "$GIT" checkout "$VIRTUALENV_REVISION" --quiet | |
166 cd ../.. | |
167 echo "Done fetching virtualenv" | |
168 fi | |
169 python -u ./bootstrap/bootstrap.py --deps_file bootstrap/deps.pyl --quiet ENV | |
OLD | NEW |