libchromiumcontent/script/bootstrap

32 строки
815 B
Plaintext
Исходник Постоянная ссылка Обычный вид История

#!/usr/bin/env python
2013-02-19 01:06:57 +04:00
import os
import shutil
import subprocess
import sys
2013-02-19 01:06:57 +04:00
2018-01-25 04:26:17 +03:00
import lib.util as util
2013-02-19 01:06:57 +04:00
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
2013-02-19 01:06:57 +04:00
def main():
os.chdir(SOURCE_ROOT)
result = (subprocess.call(['git', 'submodule', 'sync']) or
subprocess.call(['git', 'submodule', 'update',
'--init', '--recursive']))
if result:
return result
2017-04-21 02:59:00 +03:00
# Setup boto.
2018-01-25 04:26:17 +03:00
with util.scoped_cwd(os.path.join('vendor', 'boto')):
2017-04-21 02:59:00 +03:00
subprocess.call([sys.executable, 'setup.py', 'build'])
# On windows python assumes all script names end with .py, if we don't
# do so some modules like multiprocessing would break.
shutil.copy(os.path.join('bin', 's3put'), os.path.join('bin', 's3put.py'))
2017-04-21 02:59:00 +03:00
if __name__ == '__main__':
sys.exit(main())