OLD | NEW |
---|---|
(Empty) | |
1 #!/bin/sh | |
2 | |
3 # Script to bootstrap the 'wheel' wheel from deps.pst. You only need to run | |
4 # this when upgrading the wheel wheel in deps.pst, or when initializing the | |
5 # google storage bucket from scratch. | |
6 | |
dnj
2014/07/10 16:06:18
Consider doing a script path discovery and constru
iannucci
2014/07/11 02:14:45
Done.
| |
7 ./bootstrap.py --env_path BUILD_ENV | |
8 | |
9 . ./BUILD_ENV/bin/activate | |
10 | |
11 read -r -d '' PROG <<EOF | |
dnj
2014/07/10 16:06:18
Consider exporting this to a "bootstrap_wheel_whee
iannucci
2014/07/11 02:14:46
meh. there's already too many files here. Having t
| |
12 import bootstrap | |
13 print bootstrap.read_deps('deps.pst')['wheel']['gs'] | |
14 EOF | |
15 SHA=$(echo "$PROG" | python -) | |
dnj
2014/07/10 16:06:18
Either set "-e" (errexit) or explicitly check the
iannucci
2014/07/11 02:14:46
Done.
| |
16 | |
17 pip install wheel "https://storage.googleapis.com/chrome-python-wheelhouse/sourc es/$SHA" | |
18 | |
19 rm -rf wheelhouse | |
dnj
2014/07/10 16:06:17
Surround this w/ a directory check and maybe print
iannucci
2014/07/11 02:14:45
wheelhouse is only used by these scripts for build
| |
20 mkdir wheelhouse | |
21 | |
22 python - <<EOF | |
dnj
2014/07/10 16:06:18
Consider exporting this to a "bootstrap_wheel_whee
iannucci
2014/07/11 02:14:45
Acknowledged.
| |
23 import build_deps | |
24 import bootstrap | |
25 build = bootstrap.read_deps('deps.pst')['wheel']['build'] | |
26 build_deps.process_gs('wheel', '$SHA', build) | |
27 build_deps.push_wheelhouse() | |
28 EOF | |
OLD | NEW |