add virtualenv

This commit is contained in:
Alex Grintsvayg 2017-01-18 16:33:27 -05:00
parent b1ce329e8e
commit 059fd11b94
2 changed files with 11 additions and 0 deletions

View file

@ -11,6 +11,11 @@ if [ -n "${TEAMCITY_VERSION:-}" ]; then
fi
VENV="$ROOT/venv"
virtualenv "$VENV"
source "$VENV/bin/activate"
(
cd "$ROOT/electron"
npm install
@ -68,3 +73,5 @@ if [ -n "${TEAMCITY_VERSION:-}" ]; then
else
echo 'Build complete. Run `electron electron` to launch the app'
fi
deactivate

View file

@ -75,6 +75,10 @@ if $LINUX && ! (pip list --format=columns | grep --quiet setuptools); then
$SUDO pip install setuptools
fi
if ! cmd_exists virtualenv; then
$SUDO pip install virtualenv
fi
if ! cmd_exists pyinstaller; then
$SUDO pip install pyinstaller
fi