install virtualenvwrapper by default, and use project defined python interpreter. Also make requirements command output verbose
This commit is contained in:
parent
a3785c9180
commit
ae2b54e738
|
@ -14,11 +14,11 @@ PYTHON_INTERPRETER = {{ cookiecutter.python_interpreter }}
|
|||
|
||||
## Install Python Dependencies
|
||||
requirements: test_environment
|
||||
pip install -q -r requirements.txt
|
||||
pip install -r requirements.txt
|
||||
|
||||
## Make Dataset
|
||||
data: requirements
|
||||
python src/data/make_dataset.py
|
||||
$(PYTHON_INTERPRETER) src/data/make_dataset.py
|
||||
|
||||
## Delete all compiled Python files
|
||||
clean:
|
||||
|
@ -38,12 +38,16 @@ sync_data_from_s3:
|
|||
|
||||
## Set up python interpreter environment
|
||||
create_environment:
|
||||
@pip install -q virtualenvwrapper
|
||||
@echo ">>> Installing virtualenvwrapper if not already intalled.\nMake sure the following lines are in shell startup file\n\
|
||||
export WORKON_HOME=$HOME/.virtualenvs\nexport PROJECT_HOME=$HOME/Devel\nsource /usr/local/bin/virtualenvwrapper.sh\n"
|
||||
|
||||
source /usr/local/bin/virtualenvwrapper.sh; mkvirtualenv $(PROJECT_NAME) --python=$(PYTHON_INTERPRETER)
|
||||
@echo ">>> New virtualenv created. Activate with:\nworkon $(PROJECT_NAME)"
|
||||
|
||||
## Test python environment is setup correctly
|
||||
test_environment:
|
||||
python test_environment.py
|
||||
$(PYTHON_INTERPRETER) test_environment.py
|
||||
|
||||
#################################################################################
|
||||
# PROJECT RULES #
|
||||
|
|
Loading…
Reference in New Issue