26 lines
420 B
Bash
26 lines
420 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
CHECKABLE="rslib pylib qt"
|
|
DEVEL="rspy pylib qt"
|
|
|
|
if [ "$UNOPT" = "" ]; then
|
|
BUILDFLAGS="--release --strip"
|
|
else
|
|
BUILDFLAGS=""
|
|
fi
|
|
|
|
# activate venv
|
|
if [ ! -d pyenv ]; then
|
|
python -m venv pyenv
|
|
. pyenv/bin/activate
|
|
pip install --upgrade pip setuptools
|
|
else
|
|
. pyenv/bin/activate
|
|
fi
|
|
|
|
|
|
# add qt if missing
|
|
python -c 'import PyQt5' 2>/dev/null || pip install -r qt/requirements.qt
|