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

Side by Side Diff: win_toolchain/get_toolchain_if_necessary.py

Issue 213913002: win_toolchain: Note that google.com credentials are required (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 6 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 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 """Downloads and unpacks a toolchain for building on Windows. The contents are 6 """Downloads and unpacks a toolchain for building on Windows. The contents are
7 matched by sha1 which will be updated when the toolchain is updated. 7 matched by sha1 which will be updated when the toolchain is updated.
8 8
9 Having a toolchain script in depot_tools means that it's not versioned 9 Having a toolchain script in depot_tools means that it's not versioned
10 directly with the source code. That is, if the toolchain is upgraded, but 10 directly with the source code. That is, if the toolchain is upgraded, but
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 print 'Access to gs://chrome-wintoolchain/ not configured.' 155 print 'Access to gs://chrome-wintoolchain/ not configured.'
156 print '-----------------------------------------------------------------' 156 print '-----------------------------------------------------------------'
157 print 157 print
158 print 'You appear to be a Googler.' 158 print 'You appear to be a Googler.'
159 print 159 print
160 print 'I\'m sorry for the hassle, but you need to do a one-time manual' 160 print 'I\'m sorry for the hassle, but you need to do a one-time manual'
161 print 'authentication. Please run:' 161 print 'authentication. Please run:'
162 print 162 print
163 print ' download_from_google_storage --config' 163 print ' download_from_google_storage --config'
164 print 164 print
165 print 'and follow the instructions. NOTE: Just press Enter when asked for' 165 print 'and follow the instructions.'
166 print 'a "project-id".' 166 print
167 print 'NOTE 1: Use your google.com credentials, not chromium.org.'
168 print 'NOTE 2: Just press Enter when asked for a "project-id".'
167 print 169 print
168 print '-----------------------------------------------------------------' 170 print '-----------------------------------------------------------------'
169 print 171 print
170 sys.stdout.flush() 172 sys.stdout.flush()
171 sys.exit(1) 173 sys.exit(1)
172 174
173 175
174 def DelayBeforeRemoving(target_dir): 176 def DelayBeforeRemoving(target_dir):
175 """A grace period before deleting the out of date toolchain directory.""" 177 """A grace period before deleting the out of date toolchain directory."""
176 if (os.path.isdir(target_dir) and 178 if (os.path.isdir(target_dir) and
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 248
247 if options.output_json: 249 if options.output_json:
248 shutil.copyfile(os.path.join(target_dir, '..', 'data.json'), 250 shutil.copyfile(os.path.join(target_dir, '..', 'data.json'),
249 options.output_json) 251 options.output_json)
250 252
251 return 0 253 return 0
252 254
253 255
254 if __name__ == '__main__': 256 if __name__ == '__main__':
255 sys.exit(main()) 257 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698