From 085cb258fccb039180e52c8934451673d68e963f Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 4 Oct 2016 16:24:37 +0800 Subject: Makefile: Add --upgrade to pip3 and add a credit --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 90fe952..7c59716 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,8 @@ # # Makefile for "fg21sim" # +# Credit: http://blog.bottlepy.org/2012/07/16/virtualenv-and-makefiles.html +# # The name (also the directory) of the virtualenv VENV ?= "venv" @@ -24,7 +26,7 @@ default: venv: ${VENV}/bin/activate ${VENV}/bin/activate: requirements.txt test -d "${VENV}" || virtualenv --python=python3 ${VENV} - ./${VENV}/bin/pip3 install -r requirements.txt + ./${VENV}/bin/pip3 install --upgrade -r requirements.txt touch ${VENV}/bin/activate # Install this package to the virtualenv -- cgit v1.2.2