Feat: Choose best python version to run venv 66/70066/2 v0.76.3
authorEric Ball <eball@linuxfoundation.org>
Thu, 21 Apr 2022 23:43:59 +0000 (16:43 -0700)
committerEric Ball <eball@linuxfoundation.org>
Thu, 21 Apr 2022 23:53:25 +0000 (16:53 -0700)
commita405251903ffbf60c2080a30b136dd8d47c12d19
treef9d53d264c7689c05211a9b959e57ea53ca101ef
parent3c919f0f43babd56ad1031546c1bdb951f0c0fe6
Feat: Choose best python version to run venv

We've seen problems with capture-instance-metadata.sh choosing the
best python path, so this should help get the best version on each
builder.

If the $PYTHON variable is set, this will be used. If not, we check to
see if python3 is available, as this should point to the latest
version. If this is also not available, we run with the basic python
command.

Change-Id: I9950cc286c72fd17eac7a3c678ef8ca04ccd8921
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
releasenotes/notes/smart-venv-activate-f7f691e15cf0bde4.yaml [new file with mode: 0644]
shell/capture-instance-metadata.sh