|
|
@ -1,15 +1,17 @@
|
|
|
|
PYTHON := python3
|
|
|
|
PYTHON := python3
|
|
|
|
PYTEST := pytest
|
|
|
|
PYTEST := pytest
|
|
|
|
PIP := pip3
|
|
|
|
PIP := pip3
|
|
|
|
PYTEST_ARGS := -W ignore::DeprecationWarning -vv -x --log-level=DEBUG
|
|
|
|
JULIA := julia
|
|
|
|
JULIA := julia --color=yes --project=src/julia
|
|
|
|
|
|
|
|
JULIA_SYSIMAGE := $(JULIA) --sysimage build/sysimage.so
|
|
|
|
PYTEST_ARGS := -W ignore::DeprecationWarning -vv -x --log-level=DEBUG
|
|
|
|
|
|
|
|
JULIA_ARGS := --color=yes --project=src/julia
|
|
|
|
|
|
|
|
JULIA_SYSIMAGE_ARGS := $(JULIA_ARGS) --sysimage build/sysimage.so
|
|
|
|
|
|
|
|
|
|
|
|
all: docs test
|
|
|
|
all: docs test
|
|
|
|
|
|
|
|
|
|
|
|
build/sysimage.so: src/julia/Manifest.toml src/julia/Project.toml
|
|
|
|
build/sysimage.so: src/julia/Manifest.toml src/julia/Project.toml
|
|
|
|
mkdir -p build
|
|
|
|
mkdir -p build
|
|
|
|
$(JULIA) src/julia/sysimage.jl
|
|
|
|
$(JULIA) $(JULIA_ARGS) src/julia/sysimage.jl
|
|
|
|
|
|
|
|
|
|
|
|
develop:
|
|
|
|
develop:
|
|
|
|
cd src/python && $(PYTHON) setup.py develop
|
|
|
|
cd src/python && $(PYTHON) setup.py develop
|
|
|
@ -23,7 +25,7 @@ install-python:
|
|
|
|
cd src/python && $(PYTHON) setup.py install
|
|
|
|
cd src/python && $(PYTHON) setup.py install
|
|
|
|
|
|
|
|
|
|
|
|
install-julia:
|
|
|
|
install-julia:
|
|
|
|
$(JULIA) -e "using Pkg; Pkg.instantiate()"
|
|
|
|
$(JULIA) $(JULIA_ARGS) src/julia/setup.jl `which $(PYTHON)`
|
|
|
|
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
uninstall:
|
|
|
|
$(PIP) uninstall miplearn
|
|
|
|
$(PIP) uninstall miplearn
|
|
|
@ -37,6 +39,6 @@ test-python-watch:
|
|
|
|
cd src/python && pytest-watch -- $(PYTEST_ARGS)
|
|
|
|
cd src/python && pytest-watch -- $(PYTEST_ARGS)
|
|
|
|
|
|
|
|
|
|
|
|
test-julia: build/sysimage.so
|
|
|
|
test-julia: build/sysimage.so
|
|
|
|
$(JULIA_SYSIMAGE) src/julia/test/runtests.jl
|
|
|
|
$(JULIA) $(JULIA_SYSIMAGE_ARGS) src/julia/test/runtests.jl
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: test test-python test-julia test-watch docs install
|
|
|
|
.PHONY: test test-python test-julia test-watch docs install
|
|
|
|