Unverified Commit 44d6bd1c authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

Makefile: add symphony-dev and symphony-build targets

`symphony-dev` sets up the current python environment for development.
Includes installing required dependencies and then editable installs for
each simbricks python package.

`symphony-build` build wheels and source packages for all simbricks
python packages in `symphony/dist/`.
parent ae196e5e
...@@ -51,4 +51,4 @@ compile_commands.json ...@@ -51,4 +51,4 @@ compile_commands.json
.cache .cache
.eggs .eggs
.vscode .vscode
symphony/*/dist symphony/**/dist
...@@ -45,6 +45,7 @@ $(eval $(call subdir,sims)) ...@@ -45,6 +45,7 @@ $(eval $(call subdir,sims))
$(eval $(call subdir,dist)) $(eval $(call subdir,dist))
$(eval $(call subdir,doc)) $(eval $(call subdir,doc))
$(eval $(call subdir,images)) $(eval $(call subdir,images))
$(eval $(call subdir,symphony))
all: $(ALL_ALL) all: $(ALL_ALL)
......
# Copyright 2024 Max Planck Institute for Software Systems, and
# National University of Singapore
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
include mk/subdir_pre.mk
SYMPHONY_DIR := $(d)/
SYMPHONY_MODS := cli local runtime client orchestration runner utils
symphony-dev:
pip install -r $(base_dir)requirements.txt
cd $(SYMPHONY_DIR); pip install -r requirements.txt
symphony-build:
for m in $(SYMPHONY_MODS); do \
(cd $(SYMPHONY_DIR)$$m && \
poetry build -o ../dist/); \
done
.PHONY: symphony-dev symphony-build
CLEAN := $(SYMPHONY_DIR)dist
include mk/subdir_post.mk
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment