Commit Graph

2 Commits

Author SHA1 Message Date
Rob Mohr
dc70d1cb86 Bootstrap with 'python' and check CIPD auth.
Bootstrap scripts now use '#!/usr/bin/env python' instead of
'#!/usr/bin/env python3' which should let them work on a wider variety
of systems. Tested again with python 2 and made a couple minor changes
for compatibility.

Added check_auth() function to update.py. If it fails, it prints a
useful error message and gets ABORT_PW_ENVSETUP=1 added to the
environment. This is a cue to env_setup/setup.sh to not continue so the
error is prominent on the terminal. (env_setup/setup.sh clears this
variable so it won't persist into the next time env_setup/setup.sh is
sourced.)

Change-Id: Ib4a694178f1dce8971302914651feea3c727ea15
2019-12-04 10:05:28 -08:00
Rob Mohr
cacb877465 Adding env_setup folder and initial setup script.
Python 3 virtualenv setup and moves CIPD files from
https://pigweed.googlesource.com/infra/buildtools.

Change-Id: I0d0d8dfc2e80d9dadc80158201e71cda5c7a393b
2019-11-22 23:33:36 +00:00