]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
bootstrap: Allow absolute-path $VENV
authorZack Cerza <zack@redhat.com>
Fri, 1 Apr 2022 18:01:32 +0000 (14:01 -0400)
committerZack Cerza <zack@redhat.com>
Tue, 12 Apr 2022 23:32:38 +0000 (17:32 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
bootstrap

index 66f1212b473969a59ece5b63d5d2f2e1782e33ac..f4234d9be6053953d9e3f6279a5a7d952db8019b 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -17,7 +17,7 @@ if [[ "$PYTHON" =~ "python2" ]]; then
 fi
 
 PYTHON=${PYTHON:-"python3"}
-VENV=${VENV:-"virtualenv"}
+VENV=${VENV:-"./virtualenv"}
 
 case "$(uname -s)" in
 Linux)
@@ -142,18 +142,18 @@ fi
 
 export LC_ALL=en_US.UTF-8
 
-if [ -z "$NO_CLOBBER" ] || [ ! -e ./$VENV ]; then
+if [ -z "$NO_CLOBBER" ] || [ ! -e $VENV ]; then
     python3 -m venv $VENV
 fi
 
 # First, upgrade pip
-./$VENV/bin/pip install --upgrade pip
+$VENV/bin/pip install --upgrade pip
 
 # Remove leftover .pyc files
 find teuthology -name '*.pyc' -exec rm {} \;
 
 # Install teuthology in editable mode
-./$VENV/bin/pip install --editable '.[test]'
+$VENV/bin/pip install --editable '.[test]'
 
 # Check to make sure requirements are met
-./$VENV/bin/pip check
+$VENV/bin/pip check