From c303a490ef4a3d8f473725729e29407a3e07c81c Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Wed, 24 Aug 2016 22:04:58 -0400 Subject: [PATCH] Make 'make env' a bit more solid In some context, we don't end up with a bin/pip executable in our venv. It's better to call pip as a module. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b4ab24ba..3b0e8903 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -PYTHON=python3 -REQ_MINOR_VERSION=4 +PYTHON ?= python3 +REQ_MINOR_VERSION = 4 PREFIX ?= /usr/local MAINDIR = ${PREFIX}/share/dupeguru @@ -46,7 +46,7 @@ $(submodules_target) : env : | $(submodules_target) reqs @echo "Creating our virtualenv" ${PYTHON} -m venv env --system-site-packages - ./env/bin/pip install -r requirements.txt + ./env/bin/python -m pip install -r requirements.txt build/help : | env ./env/bin/python build.py --doc