builder: Install butterfly system-wide

This commit is contained in:
Alexey Rogachevskiy
2020-02-17 14:52:24 +03:00
parent b37a32d4dc
commit 77189b5f5f
3 changed files with 2 additions and 9 deletions

View File

@@ -2,5 +2,5 @@
Description=Butterfly Terminal Server
[Service]
ExecStart=/bin/bash -c ". /root/butterfly_env/bin/activate; butterfly.server.py --host="0.0.0.0" --unsecure"
ExecStart=/usr/local/bin/butterfly.server.py --host="0.0.0.0" --unsecure
User=pi

View File

@@ -134,14 +134,10 @@ pip3 --version
echo_stamp "Install and enable Butterfly (web terminal)"
echo_stamp "Workaround for tornado >= 6.0 breaking butterfly"
cd /root
python3 -m venv butterfly_env
source butterfly_env/bin/activate
my_travis_retry pip install tornado==5.1.1
my_travis_retry pip install tornado==4.2.1
my_travis_retry pip install butterfly
my_travis_retry pip install butterfly[systemd]
systemctl enable butterfly.socket
deactivate
echo_stamp "Install ws281x library"
my_travis_retry pip install --prefer-binary rpi_ws281x

View File

@@ -27,10 +27,7 @@ tcpdump --version
monkey --version
pigpiod -v
i2cdetect -V
# butterfly uses its own venv, so we honor that
. /root/butterfly_env/bin/activate
butterfly -h
# deactivate venv as needed
deactivate
espeak --version
mjpg_streamer --version