From: Zack Cerza Date: Wed, 8 Jun 2022 20:03:30 +0000 (-0600) Subject: bootstrap: If pip is missing, rebuild virtualenv X-Git-Tag: 1.2.0~163^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=efb9433ff8f126ff714696ac5a9a81eabc49c41d;p=teuthology.git bootstrap: If pip is missing, rebuild virtualenv Signed-off-by: Zack Cerza --- diff --git a/bootstrap b/bootstrap index 91af9bdb4..42415be19 100755 --- a/bootstrap +++ b/bootstrap @@ -142,6 +142,10 @@ fi export LC_ALL=en_US.UTF-8 +if [ -z "$NO_CLOBBER" ] && [ ! -e "./$VENV/bin/pip" ]; then + rm -rf virtualenv +fi + if [ -z "$NO_CLOBBER" ] || [ ! -e ./$VENV ]; then python3 -m venv $VENV fi