admin: virtualenv and update
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bertrand Benjamin 2020-08-20 09:54:29 +02:00
parent a4f83d140f
commit b2a729f334

View File

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