From 82c555dd27d77fbab0776f337d358febc15bd15e Mon Sep 17 00:00:00 2001 From: Sylvain Tricot Date: Tue, 8 Dec 2020 21:28:22 +0100 Subject: [PATCH] Add a devel target to the Makefile. The "devel" target is used to install msspec in developpment mode, ie along with a clone of the git repo. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b725978..20c8044 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ ifneq ($(shell test $(PYTHON_VERSION_MAJOR) -ge 3 -a $(PYTHON_VERSION_MINOR) -ge endif -.PHONY: pybinding venv doc clean +.PHONY: pybinding install devel venv doc clean pybinding: @@ -29,6 +29,11 @@ install: venv @+$(MAKE) -C src frontend @. $(VENV_PATH)/bin/activate && pip install src/dist/msspec-$(VERSION).tar.gz +devel: venv + @+$(MAKE) -C src pybinding + @+$(MAKE) -C src frontend + @. $(VENV_PATH)/bin/activate && pip install -e src/ + venv: virtualenv --python=$(PYTHON_EXE) --prompt="(msspec-$(VERSION)) " $(VENV_PATH) . $(VENV_PATH)/bin/activate && pip install --upgrade pip && pip install -r src/pip.freeze