2020-01-02 10:43:19 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2020-01-02 22:48:38 +01:00
|
|
|
CHECKABLE="rslib pylib qt"
|
|
|
|
DEVEL="rspy pylib qt i18n"
|
2020-01-02 10:43:19 +01:00
|
|
|
|
|
|
|
if [ "$UNOPT" = "" ]; then
|
|
|
|
BUILDFLAGS="--release --strip"
|
|
|
|
else
|
|
|
|
BUILDFLAGS=""
|
|
|
|
fi
|
|
|
|
|
|
|
|
# activate venv
|
2020-01-02 11:20:36 +01:00
|
|
|
if [ ! -d pyenv ]; then
|
|
|
|
python -m venv pyenv
|
2020-01-02 11:46:15 +01:00
|
|
|
. pyenv/bin/activate
|
2020-01-02 11:20:36 +01:00
|
|
|
pip install --upgrade pip setuptools
|
2020-01-02 11:46:15 +01:00
|
|
|
else
|
|
|
|
. pyenv/bin/activate
|
2020-01-02 11:20:36 +01:00
|
|
|
fi
|
2020-01-02 11:46:15 +01:00
|
|
|
|
2020-01-02 10:43:19 +01:00
|
|
|
|
|
|
|
# add qt if missing
|
2020-01-02 22:48:38 +01:00
|
|
|
python -c 'import PyQt5' 2>/dev/null || pip install -r qt/requirements.qt
|
2020-01-02 11:20:23 +01:00
|
|
|
|
|
|
|
# fetch i18n files
|
2020-01-02 11:39:19 +01:00
|
|
|
test -d i18n || git clone --depth 1 https://github.com/ankitects/anki-i18n i18n
|