]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Trader.git/commitdiff
Add conditional install with virtual env
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Tue, 27 Mar 2018 19:30:41 +0000 (21:30 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Tue, 27 Mar 2018 19:30:41 +0000 (21:30 +0200)
Makefile

index dfbe3b46234cd4f3e5cd93260a9b68f87e58b25d..534bf8852d196334cc5dbb2f463863c7727f5cb9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,9 @@
 install:
+ifeq (${VIRTUAL_ENV},)
        pip install --user -r requirements.txt
+else
+       pip install -r requirements.txt
+endif
 
 test:
        python test.py