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.
This commit is contained in:
Sylvain Tricot 2020-12-08 21:28:22 +01:00
parent d4ed926e55
commit 82c555dd27
1 changed files with 6 additions and 1 deletions

View File

@ -17,7 +17,7 @@ ifneq ($(shell test $(PYTHON_VERSION_MAJOR) -ge 3 -a $(PYTHON_VERSION_MINOR) -ge
endif endif
.PHONY: pybinding venv doc clean .PHONY: pybinding install devel venv doc clean
pybinding: pybinding:
@ -29,6 +29,11 @@ install: venv
@+$(MAKE) -C src frontend @+$(MAKE) -C src frontend
@. $(VENV_PATH)/bin/activate && pip install src/dist/msspec-$(VERSION).tar.gz @. $(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: venv:
virtualenv --python=$(PYTHON_EXE) --prompt="(msspec-$(VERSION)) " $(VENV_PATH) virtualenv --python=$(PYTHON_EXE) --prompt="(msspec-$(VERSION)) " $(VENV_PATH)
. $(VENV_PATH)/bin/activate && pip install --upgrade pip && pip install -r src/pip.freeze . $(VENV_PATH)/bin/activate && pip install --upgrade pip && pip install -r src/pip.freeze