aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-10-04 16:24:37 +0800
committerAaron LI <aaronly.me@outlook.com>2016-10-04 16:30:09 +0800
commit085cb258fccb039180e52c8934451673d68e963f (patch)
tree4a9cbe70672799686995df8d81c9c1de81508f40
parent601fda9c6f9444087eea4fbb9f1c8397554e0b7f (diff)
downloadfg21sim-085cb258fccb039180e52c8934451673d68e963f.tar.bz2
Makefile: Add --upgrade to pip3 and add a credit
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
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