]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
bootstrap: Optionally skip teuthology install
authorZack Cerza <zack@redhat.com>
Tue, 12 Apr 2022 18:31:52 +0000 (12:31 -0600)
committerZack Cerza <zack@cerza.org>
Wed, 27 Apr 2022 20:51:06 +0000 (14:51 -0600)
The docker-compose dev setup was the inspiration for this feature; it
allows us to split the installation of dependencies and the project
itself into two phases. This in turn allows us to avoid rerunning
bootstrap if requirements.txt didn't change.

Signed-off-by: Zack Cerza <zack@redhat.com>
bootstrap

index 9c57072f2550f88af0d4135828e7a11608061b17..a36a54cb4816f8ed817ab746f14fd446c5a15b3a 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -152,8 +152,8 @@ fi
 # Remove leftover .pyc files
 find teuthology -name '*.pyc' -exec rm {} \;
 
-# Install teuthology in editable mode
-./$VENV/bin/pip install --editable '.[test]'
+# By default, install teuthology in editable mode
+./$VENV/bin/pip install ${PIP_INSTALL_FLAGS:---editable '.[test]'}
 
 # Check to make sure requirements are met
 ./$VENV/bin/pip check