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

Side by Side Diff: chrome/common/extensions/docs/server2/build_server.py

Issue 139303023: add GCS support to docs server (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated third party library, rebased and fixed a path issue caused by rebasing Created 6 years, 10 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
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 is used to copy all dependencies into the local directory. 6 # This script is used to copy all dependencies into the local directory.
7 # The package of files can then be uploaded to App Engine. 7 # The package of files can then be uploaded to App Engine.
8 import os 8 import os
9 import shutil 9 import shutil
10 import stat 10 import stat
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 'json_schema_compiler', 68 'json_schema_compiler',
69 SCHEMA_COMPILER_FILES) 69 SCHEMA_COMPILER_FILES)
70 CopyThirdParty(os.path.join(TOOLS_DIR, 'json_comment_eater'), 70 CopyThirdParty(os.path.join(TOOLS_DIR, 'json_comment_eater'),
71 'json_schema_compiler', 71 'json_schema_compiler',
72 ['json_comment_eater.py']) 72 ['json_comment_eater.py'])
73 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'simplejson'), 73 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'simplejson'),
74 os.path.join('json_schema_compiler', 'simplejson'), 74 os.path.join('json_schema_compiler', 'simplejson'),
75 make_init=False) 75 make_init=False)
76 MakeInit(LOCAL_THIRD_PARTY_DIR) 76 MakeInit(LOCAL_THIRD_PARTY_DIR)
77 77
78 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'google_appengine_cloudstorage',
79 'cloudstorage'), 'cloudstorage')
80
78 # To be able to use the Handlebar class we need this import in __init__.py. 81 # To be able to use the Handlebar class we need this import in __init__.py.
79 with open(os.path.join(LOCAL_THIRD_PARTY_DIR, 82 with open(os.path.join(LOCAL_THIRD_PARTY_DIR,
80 'handlebar', 83 'handlebar',
81 '__init__.py'), 'a') as f: 84 '__init__.py'), 'a') as f:
82 f.write('from handlebar import Handlebar\n') 85 f.write('from handlebar import Handlebar\n')
83 86
84 if __name__ == '__main__': 87 if __name__ == '__main__':
85 main() 88 main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698