admin: virtualenv and update
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a4f83d140f
commit
b2a729f334
13
Makefile
13
Makefile
@ -2,14 +2,23 @@ CLEUSB=Cle8G
|
|||||||
|
|
||||||
COMMON_EXCLUDE=--exclude "__pycache__" --exclude "venv/" --exclude ".git" --exclude ".gitignore" --exclude ".*"
|
COMMON_EXCLUDE=--exclude "__pycache__" --exclude "venv/" --exclude ".git" --exclude ".gitignore" --exclude ".*"
|
||||||
|
|
||||||
|
VENV="enseignements"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
git config core.hooksPath ./tools/git/hooks/
|
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;\
|
pip install -r requirements.txt;\
|
||||||
)
|
)
|
||||||
|
|
||||||
|
update:
|
||||||
|
( \
|
||||||
|
. ~/.venv/$(VENV)/bin/activate;\
|
||||||
|
pip install --ignore-installed -r requirements.txt
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
git clean -idx -e venv/ -e video/
|
git clean -idx -e venv/ -e video/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user