From b8e8e1af74b9f43a810c2db7633b26c30b20c002 Mon Sep 17 00:00:00 2001 From: Unai Zulaika <31987236+unai-zulaika@users.noreply.github.com> Date: Mon, 12 Nov 2018 20:33:10 +0100 Subject: [PATCH] Update Makefile (#150) Work with pip from $PYTHON_INTERPRETER as recommended in https://packaging.python.org/guides/installing-using-pip-and-virtualenv/ --- {{ cookiecutter.repo_name }}/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/{{ cookiecutter.repo_name }}/Makefile b/{{ cookiecutter.repo_name }}/Makefile index 3d8e11a..12f59b3 100644 --- a/{{ cookiecutter.repo_name }}/Makefile +++ b/{{ cookiecutter.repo_name }}/Makefile @@ -22,8 +22,8 @@ endif ## Install Python Dependencies requirements: test_environment - pip install -U pip setuptools wheel - pip install -r requirements.txt + $(PYTHON_INTERPRETER) -m pip install -U pip setuptools wheel + $(PYTHON_INTERPRETER) -m pip install -r requirements.txt ## Make Dataset data: requirements @@ -65,7 +65,7 @@ else endif @echo ">>> New conda env created. Activate with:\nsource activate $(PROJECT_NAME)" else - @pip install -q virtualenv virtualenvwrapper + $(PYTHON_INTERPRETER) -m pip install -q virtualenv 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" @bash -c "source `which virtualenvwrapper.sh`;mkvirtualenv $(PROJECT_NAME) --python=$(PYTHON_INTERPRETER)"