mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
fixed makefile bug
This commit is contained in:
parent
c2d703152d
commit
f0d9c667bb
1 changed files with 6 additions and 4 deletions
|
|
@ -3,16 +3,14 @@ export PATH := $(PYENV_ROOT)/bin:$(PATH)
|
|||
PYTHON_VERSION ?= 3.10.12
|
||||
|
||||
.PHONY: init
|
||||
init: build docker
|
||||
init: dir build docker
|
||||
|
||||
.PHONY: training_env
|
||||
env:
|
||||
pyenv install $(PYTHON_VERSION) || echo "Proceeding..." # || is to swallow non-zero response if python version already is installed
|
||||
pyenv global $(PYTHON_VERSION)
|
||||
python3 -m venv .training_env
|
||||
. .training_env/bin/activate
|
||||
pip install --upgrade pip
|
||||
pip install -r requirements/training/training-dev.txt && pre-commit install
|
||||
. .training_env/bin/activate && pip install --upgrade pip && pip install -r requirements/training/training-dev.txt && pre-commit install
|
||||
|
||||
echo " --- TO ACTIVATE THE ENVIRONMENT --- "
|
||||
echo "Run source .training_env/bin/activate to activate the virtual environment"
|
||||
|
|
@ -20,6 +18,10 @@ env:
|
|||
.PHONY: check-all
|
||||
check-all: pre-commit run -a
|
||||
|
||||
.PHONY: dir
|
||||
dir:
|
||||
mkdir -p {s3-mock/retrofit-data-dev,s3-mock/retrofit-model-directory-dev,s3-mock/retrofit-sap-predictions-dev}
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
docker-compose build
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue