Skip to content

Commit

Permalink
Build inside a venv and use poetry in the top level Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpc-lip6 committed Jul 31, 2023
1 parent 3e32833 commit e73980b
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
endif
endif

venv = source ./venv/bin/activate

SMP_FLAGS =
ifneq ($(shell which nproc 2> /dev/null),)
SMP_FLAGS = -j$(shell nproc)
Expand Down Expand Up @@ -55,8 +57,17 @@ check_dir:
fi


install: check_dir
@./bootstrap/ccb.py $(DEVTOOLSET_OPTION) --project=support --project=coriolis --make="$(SMP_FLAGS) install"
check_venv:
@if [ ! -d "./venv" ]; then python3 -m venv venv; fi


poetry_deps: check_venv
@$(venv); poetry install --no-root


install: check_dir poetry_deps
@$(venv); ./bootstrap/ccb.py $(DEVTOOLSET_OPTION) --project=coriolis \
--make="$(SMP_FLAGS) --doc install"
@echo ""; \
echo "============================================================================"; \
echo "Coriolis has been successfully built"; \
Expand Down

0 comments on commit e73980b

Please sign in to comment.