avoid the slow pip upgrade on subsequent runs

This commit is contained in:
Damien Elmes 2020-01-02 20:20:36 +10:00
parent e56ad3d1ab
commit 38df028180

View file

@ -12,9 +12,11 @@ else
fi
# activate venv
test -d pyenv || python -m venv pyenv
. pyenv/bin/activate
if [ ! -d pyenv ]; then
python -m venv pyenv
pip install --upgrade pip setuptools
fi
. pyenv/bin/activate
# add qt if missing
python -c 'import PyQt5' 2>/dev/null || pip install -r anki-qt/requirements.qt