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.
This commit is contained in:
Virgil Dupras 2016-08-24 22:04:58 -04:00
parent 6ed4499a97
commit c303a490ef
1 changed files with 3 additions and 3 deletions

View File

@ -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