From b65ab442c9d808ea78e7ff01c85865c980881c3f Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Thu, 14 Jan 2021 21:12:15 +0000 Subject: Allow bypassing of virtualenv --- python/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'python/Makefile') diff --git a/python/Makefile b/python/Makefile index 6b98eac..8c2fca6 100644 --- a/python/Makefile +++ b/python/Makefile @@ -51,11 +51,14 @@ dist: ## Make Python source distribution # Testing # ########### -.PHONY: test +.PHONY: test test_direct test: venv ## Run nosetests using the default nosetests command source $(VENV_DIR)/bin/activate && green -a -vv ./tests +test_direct: + pip install -e .[dev] && green -a -vv ./tests + ####################### # Virtual environment # ####################### @@ -66,7 +69,6 @@ venv: $(VENV_DIR)/bin/activate $(VENV_DIR)/bin/activate: test -d $(VENV_DIR) || python -m venv $(VENV_DIR) - ls -R $(VENV_DIR) source $(VENV_DIR)/bin/activate && pip install -e .[dev] touch $(VENV_DIR)/bin/activate -- cgit v1.2.3