From 8ad16aac89b77b647cf586c3b950aafa47d8b369 Mon Sep 17 00:00:00 2001 From: Alinson S Xavier Date: Mon, 17 Aug 2020 16:41:13 -0500 Subject: [PATCH] Makefile: Use python3 by default --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 136dcfc..adc09b3 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +PYTHON := python3 +PYTEST := pytest PYTEST_ARGS := -W ignore::DeprecationWarning -vv -x --log-level=DEBUG JULIA := julia --color=yes --project=src/julia --sysimage build/sysimage.so @@ -8,14 +10,15 @@ build/sysimage.so: src/julia/Manifest.toml src/julia/Project.toml julia --color=yes --project=src/julia src/julia/sysimage.jl develop: - cd src/python && python setup.py develop - $(JULIA) -e "using Pkg; Pkg.instantiate()" + cd src/python && $(PYTHON) setup.py develop docs: mkdocs build install: - cd src/python && python setup.py install + cd src/python && $(PYTHON) setup.py install + +install-julia: $(JULIA) -e "using Pkg; Pkg.instantiate()" uninstall: @@ -24,7 +27,7 @@ uninstall: test: test-python test-julia test-python: - cd src/python && pytest $(PYTEST_ARGS) + cd src/python && $(PYTEST) $(PYTEST_ARGS) test-python-watch: cd src/python && pytest-watch -- $(PYTEST_ARGS)