From 0df3d9ced743ac3385dd710c7133a6cf369b051c Mon Sep 17 00:00:00 2001 From: Radu Nicolae Date: Mon, 16 Jun 2025 18:01:07 +0200 Subject: integrated M3SA, updated with tests and CpuPowerModels --- .../opendc-experiments-m3sa/src/main/python/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 opendc-experiments/opendc-experiments-m3sa/src/main/python/Makefile (limited to 'opendc-experiments/opendc-experiments-m3sa/src/main/python/Makefile') 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 -- cgit v1.2.3