[submodule "vendor/requests"]
path = vendor/requests
url = https://github.com/kennethreitz/requests
+[submodule "vendor/boto"]
+ path = vendor/boto
+ url = https://github.com/boto/boto.git
update_clang()
update_submodules()
- setup_requests()
+ setup_python_libs()
update_node_modules('.')
bootstrap_brightray(args.dev, args.url, args.target_arch)
execute_stdout(['git', 'submodule', 'update', '--init', '--recursive'])
-def setup_requests():
- with scoped_cwd(os.path.join(VENDOR_DIR, 'requests')):
- execute_stdout([sys.executable, 'setup.py', 'build'])
+def setup_python_libs():
+ for lib in ('requests', 'boto'):
+ with scoped_cwd(os.path.join(VENDOR_DIR, lib)):
+ execute_stdout([sys.executable, 'setup.py', 'build'])
def bootstrap_brightray(is_dev, url, target_arch):
def s3put(bucket, access_key, secret_key, prefix, key_prefix, files):
+ env = os.environ.copy()
+ BOTO_DIR = os.path.abspath(os.path.join(__file__, '..', '..', '..', 'vendor',
+ 'boto'))
+ env['PYTHONPATH'] = os.path.pathsep.join([
+ env.get('PYTHONPATH', ''),
+ os.path.join(BOTO_DIR, 'build', 'lib'),
+ os.path.join(BOTO_DIR, 'build', 'lib.linux-x86_64-2.7')])
+
+ boto = os.path.join(BOTO_DIR, 'bin', 's3put')
args = [
- 's3put',
+ sys.executable,
+ boto,
'--bucket', bucket,
'--access_key', access_key,
'--secret_key', secret_key,
'--grant', 'public-read'
] + files
- execute(args)
+ execute(args, env)
--- /dev/null
+Subproject commit f7574aa6cc2c819430c1f05e9a1a1a666ef8169b