Add commands to makefile to create environment for development

This commit is contained in:
Michael Duong 2023-08-29 18:01:52 +01:00
parent f047cbac0a
commit b2f606055f

View file

@ -7,9 +7,9 @@ init: 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
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