]> git.apps.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@redhat.com>
Tue, 12 Apr 2022 23:45:15 +0000 (17:45 -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 f4234d9be6053953d9e3f6279a5a7d952db8019b..6ad7cda87a34a14b56631b81d8fdb2ba934be109 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -152,8 +152,8 @@ $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]'
+# 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