From 0ccd68b5ff784761cb57334a8ba795dde1c5e27a Mon Sep 17 00:00:00 2001 From: Marko Mecina <marko.mecina@univie.ac.at> Date: Tue, 16 Aug 2022 15:40:31 +0200 Subject: [PATCH] detect Python venv for confignator installation --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0f2e27c..2ceef0f 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ install-confignator: @echo "| installing confignator Python package |" @echo "+---------------------------------------+" $(MAKE) build -C $(CURDIR)/Tst/confignator - pip install -U $(CURDIR)/Tst/confignator/dist/*.whl + if [ -z $VIRTUAL_ENV ]; then pip install --user -U $(CURDIR)/Tst/confignator/dist/*.whl; else pip install -U $(CURDIR)/Tst/confignator/dist/*.whl; fi @echo "+--------------------------------------+" @echo "| installed confignator Python package |" @echo "+--------------------------------------+" -- GitLab