]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
bootstrap: If pip is missing, rebuild virtualenv 1767/head
authorZack Cerza <zack@redhat.com>
Wed, 8 Jun 2022 20:03:30 +0000 (14:03 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 8 Jun 2022 20:03:30 +0000 (14:03 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
bootstrap

index 91af9bdb4cfb62e8e4b8d3fdaebb816cf3315cd2..42415be19ba7685cb72db57fcf4d65437922a0e1 100755 (executable)
--- 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