aboutsummaryrefslogtreecommitdiff
path: root/bin/postinstall.sh
blob: 85a77e7f3a3e422984fb65c57ffd0431f86a5f22 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

CWD=$PWD
. "$CWD/bin/bashfuncs.sh"

# Create virtualenv
header "Create python virtualenv and install dependencies"
execCommand "rm -rf $CWD/NeoRuntime/Runtime/venv"
execCommand "pip3 install virtualenv"
execCommand "virtualenv -p /usr/bin/python3 \"$CWD/NeoRuntime/Runtime/venv\""
header "Attempting to install the rpi_ws281x library, if you want to actually control some leds you need this. Don't worry if not."
execCommand "source \"$CWD/NeoRuntime/Runtime/venv/bin/activate\" && pip install rpi_ws281r" 1