move venv logic to makefile

This commit is contained in:
Adrian Malacoda
2016-12-15 23:14:42 -06:00
parent 9765675925
commit e574207656
2 changed files with 5 additions and 9 deletions

11
run
View File

@@ -1,13 +1,6 @@
#!/bin/bash
VENV_DIR="venv"
if [ ! -d "$VENV_DIR" ]; then
python3 -m venv venv
. "$VENV_DIR/bin/activate"
pip install -e .
else
. "$VENV_DIR/bin/activate"
fi
make "$VENV_DIR"
. "$VENV_DIR/bin/activate"
tge $@