mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
avoid the slow pip upgrade on subsequent runs
This commit is contained in:
parent
e56ad3d1ab
commit
38df028180
1 changed files with 4 additions and 2 deletions
|
@ -12,9 +12,11 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# activate venv
|
# activate venv
|
||||||
test -d pyenv || python -m venv pyenv
|
if [ ! -d pyenv ]; then
|
||||||
|
python -m venv pyenv
|
||||||
|
pip install --upgrade pip setuptools
|
||||||
|
fi
|
||||||
. pyenv/bin/activate
|
. pyenv/bin/activate
|
||||||
pip install --upgrade pip setuptools
|
|
||||||
|
|
||||||
# add qt if missing
|
# add qt if missing
|
||||||
python -c 'import PyQt5' 2>/dev/null || pip install -r anki-qt/requirements.qt
|
python -c 'import PyQt5' 2>/dev/null || pip install -r anki-qt/requirements.qt
|
||||||
|
|
Loading…
Reference in a new issue