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

Side by Side Diff: bootstrap/bootstrap_wheel_wheel.sh

Issue 381043002: Add a virtualenv-based python bootstrapping service to infra. (Closed) Base URL: https://chromium.googlesource.com/infra/infra@master
Patch Set: Created 6 years, 5 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698