mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +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
|
PYTHON_VERSION ?= 3.10.12
|
||||||
|
|
||||||
.PHONY: init
|
.PHONY: init
|
||||||
init: build docker
|
init: dir build docker
|
||||||
|
|
||||||
.PHONY: training_env
|
.PHONY: training_env
|
||||||
env:
|
env:
|
||||||
pyenv install $(PYTHON_VERSION) || echo "Proceeding..." # || is to swallow non-zero response if python version already is installed
|
pyenv install $(PYTHON_VERSION) || echo "Proceeding..." # || is to swallow non-zero response if python version already is installed
|
||||||
pyenv global $(PYTHON_VERSION)
|
pyenv global $(PYTHON_VERSION)
|
||||||
python3 -m venv .training_env
|
python3 -m venv .training_env
|
||||||
. .training_env/bin/activate
|
. .training_env/bin/activate && pip install --upgrade pip && pip install -r requirements/training/training-dev.txt && pre-commit install
|
||||||
pip install --upgrade pip
|
|
||||||
pip install -r requirements/training/training-dev.txt && pre-commit install
|
|
||||||
|
|
||||||
echo " --- TO ACTIVATE THE ENVIRONMENT --- "
|
echo " --- TO ACTIVATE THE ENVIRONMENT --- "
|
||||||
echo "Run source .training_env/bin/activate to activate the virtual environment"
|
echo "Run source .training_env/bin/activate to activate the virtual environment"
|
||||||
|
|
@ -20,6 +18,10 @@ env:
|
||||||
.PHONY: check-all
|
.PHONY: check-all
|
||||||
check-all: pre-commit run -a
|
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
|
.PHONY: build
|
||||||
build:
|
build:
|
||||||
docker-compose build
|
docker-compose build
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue