Makefile: Use python3 by default

This commit is contained in:
2020-08-17 16:41:13 -05:00
parent 338aeaa8f3
commit 8ad16aac89

View File

@@ -1,3 +1,5 @@
PYTHON := python3
PYTEST := pytest
PYTEST_ARGS := -W ignore::DeprecationWarning -vv -x --log-level=DEBUG PYTEST_ARGS := -W ignore::DeprecationWarning -vv -x --log-level=DEBUG
JULIA := julia --color=yes --project=src/julia --sysimage build/sysimage.so 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 julia --color=yes --project=src/julia src/julia/sysimage.jl
develop: develop:
cd src/python && python setup.py develop cd src/python && $(PYTHON) setup.py develop
$(JULIA) -e "using Pkg; Pkg.instantiate()"
docs: docs:
mkdocs build mkdocs build
install: install:
cd src/python && python setup.py install cd src/python && $(PYTHON) setup.py install
install-julia:
$(JULIA) -e "using Pkg; Pkg.instantiate()" $(JULIA) -e "using Pkg; Pkg.instantiate()"
uninstall: uninstall:
@@ -24,7 +27,7 @@ uninstall:
test: test-python test-julia test: test-python test-julia
test-python: test-python:
cd src/python && pytest $(PYTEST_ARGS) cd src/python && $(PYTEST) $(PYTEST_ARGS)
test-python-watch: test-python-watch:
cd src/python && pytest-watch -- $(PYTEST_ARGS) cd src/python && pytest-watch -- $(PYTEST_ARGS)