diff options
| author | Radu Nicolae <rnicolae04@gmail.com> | 2025-06-16 18:01:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-16 18:01:07 +0200 |
| commit | 0df3d9ced743ac3385dd710c7133a6cf369b051c (patch) | |
| tree | eff5d6d67c275643e229731ba08c5fe7dc4ccd0a /opendc-experiments/opendc-experiments-m3sa/src/main/python/Makefile | |
| parent | c7e303ad1b5217e2ff24cee9538ac841d6149706 (diff) | |
integrated M3SA, updated with tests and CpuPowerModels
Diffstat (limited to 'opendc-experiments/opendc-experiments-m3sa/src/main/python/Makefile')
| -rw-r--r-- | opendc-experiments/opendc-experiments-m3sa/src/main/python/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/opendc-experiments/opendc-experiments-m3sa/src/main/python/Makefile b/opendc-experiments/opendc-experiments-m3sa/src/main/python/Makefile new file mode 100644 index 00000000..c3d83154 --- /dev/null +++ b/opendc-experiments/opendc-experiments-m3sa/src/main/python/Makefile @@ -0,0 +1,17 @@ +.PHONY: install uninstall clean +SRCS = $(wildcard models/*) $(wildcard util/*) m3sa main.py + +install: $(SRCS) venv + +venv: requirements.txt + python -m venv venv + . venv/bin/activate && pip install -r requirements.txt + ln -s $(PWD)/m3sa ${HOME}/.local/bin/m3sa + @echo "WARNING: M3SA is installed under $(PWD). Do not move the directory." + +uninstall: + rm -rf venv + rm -f ${HOME}/.local/bin/m3sa + +clean: + rm -rf __pycache__ .mypy_cache .pytest_cache |
