OLD | NEW |
(Empty) | |
| 1 #!/bin/bash |
| 2 set -e |
| 3 set -x |
| 4 |
| 5 cd "$(dirname "$0")" |
| 6 |
| 7 # Script to bootstrap the 'wheel' wheel from deps.pyl, You only need to run |
| 8 # this when upgrading the wheel wheel in deps.pyl, or when initializing the |
| 9 # google storage bucket from scratch. |
| 10 |
| 11 ./bootstrap.py BUILD_ENV |
| 12 |
| 13 . ./BUILD_ENV/bin/activate |
| 14 |
| 15 read -r -d '' PROG <<EOF || true |
| 16 import bootstrap |
| 17 print bootstrap.read_deps('deps.pyl')['wheel']['gs'] |
| 18 EOF |
| 19 SHA=$(echo "$PROG" | python -) |
| 20 echo $SHA |
| 21 |
| 22 pip install wheel "https://storage.googleapis.com/chrome-python-wheelhouse/sourc
es/$SHA" |
| 23 |
| 24 rm -rf wheelhouse |
| 25 mkdir wheelhouse |
| 26 |
| 27 python - <<EOF |
| 28 import build_deps |
| 29 import bootstrap |
| 30 build = bootstrap.read_deps('deps.pyl')['wheel']['build'] |
| 31 build_deps.clear_wheelhouse() |
| 32 build_deps.process_gs('wheel', '$SHA', build) |
| 33 build_deps.push_wheelhouse() |
| 34 EOF |
OLD | NEW |