From b2a729f334b0e1041a0fc210e3e1fafd5e0bf1d7 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Thu, 20 Aug 2020 09:54:29 +0200 Subject: [PATCH] admin: virtualenv and update --- Makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4b34086..cc6b193 100644 --- a/Makefile +++ b/Makefile @@ -2,14 +2,23 @@ CLEUSB=Cle8G COMMON_EXCLUDE=--exclude "__pycache__" --exclude "venv/" --exclude ".git" --exclude ".gitignore" --exclude ".*" +VENV="enseignements" + install: git config core.hooksPath ./tools/git/hooks/ - python -m venv ~/.venv/enseignements/ + python -m venv ~/.venv/$(VENV) ( \ - . ~/.venv/enseignements/bin/activate;\ + . ~/.venv/$(VENV)/bin/activate;\ pip install -r requirements.txt;\ ) +update: + ( \ + . ~/.venv/$(VENV)/bin/activate;\ + pip install --ignore-installed -r requirements.txt + ) + + clean: git clean -idx -e venv/ -e video/