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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: bootstrap/bootstrap_wheel_wheel.sh
diff --git a/bootstrap/bootstrap_wheel_wheel.sh b/bootstrap/bootstrap_wheel_wheel.sh
new file mode 100755
index 0000000000000000000000000000000000000000..4c27bfbd1e09c5d791df82fe900159416b51195e
--- /dev/null
+++ b/bootstrap/bootstrap_wheel_wheel.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# Script to bootstrap the 'wheel' wheel from deps.pst. You only need to run
+# this when upgrading the wheel wheel in deps.pst, or when initializing the
+# google storage bucket from scratch.
+
dnj 2014/07/10 16:06:18 Consider doing a script path discovery and constru
iannucci 2014/07/11 02:14:45 Done.
+./bootstrap.py --env_path BUILD_ENV
+
+. ./BUILD_ENV/bin/activate
+
+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
+import bootstrap
+print bootstrap.read_deps('deps.pst')['wheel']['gs']
+EOF
+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.
+
+pip install wheel "https://storage.googleapis.com/chrome-python-wheelhouse/sources/$SHA"
+
+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
+mkdir wheelhouse
+
+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.
+import build_deps
+import bootstrap
+build = bootstrap.read_deps('deps.pst')['wheel']['build']
+build_deps.process_gs('wheel', '$SHA', build)
+build_deps.push_wheelhouse()
+EOF

Powered by Google App Engine
This is Rietveld 408576698