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

Side by Side Diff: download_appengine_sdk.py

Issue 25857002: Adding apprtc and downloading of google appengine sdk to webrtc.DEPS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/webrtc/webrtc.DEPS/
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « DEPS ('k') | google-appengine.zip.sha1 » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
Added: svn:executable
+ *
OLDNEW
(Empty)
1 #!/usr/bin/python
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
4 # found in the LICENSE file.
5
6 """Downloads the appengine SDK from WebRTC storage and unpacks it.
7
8 Requires that depot_tools is installed and in the PATH."""
9
10 import os
11 import sys
12 import subprocess
13 import zipfile
14
15
16 def _DownloadAppEngineZipFile(webrtc_deps_path):
17 print 'Downloading files in %s...' % webrtc_deps_path
18 cmd = ['download_from_google_storage.py',
19 '--bucket=chromium-webrtc-resources',
20 '--directory', webrtc_deps_path]
21 subprocess.check_call(cmd)
kjellander_chromium 2013/10/10 09:02:23 Does this work on windows without providing sys.ex
phoglund_chromium 2013/10/10 09:38:16 Nope, and if I do that I will have to locate depot
kjellander_chromium 2013/10/10 09:53:03 SG, great!
22
23
24 def _Unzip(path):
25 print 'Unzipping %s...' % path
26 zip_file = zipfile.ZipFile(path)
27 try:
28 zip_file.extractall()
29 finally:
30 zip_file.close()
31
32
33 def main(argv):
34 if len(argv) == 1:
35 return 'Usage: %s <path to webrtc.DEPS>' % argv[0]
36
37 webrtc_deps_path = argv[1]
38 _DownloadAppEngineZipFile(webrtc_deps_path)
39 _Unzip(os.path.join(webrtc_deps_path, 'google-appengine.zip'))
kjellander_chromium 2013/10/10 09:02:23 Hmm, is it the right thing to do to exact this int
phoglund_chromium 2013/10/10 09:38:16 It extracts into the level above the source contro
kjellander_chromium 2013/10/10 09:53:03 That sounds like the best approach, yes.
40
41
42 if __name__ == '__main__':
43 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « DEPS ('k') | google-appengine.zip.sha1 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698