From 1e588718a855ae2871a8841f6c6e621f49795454 Mon Sep 17 00:00:00 2001 From: "jakob.stendahl" Date: Sat, 17 Dec 2022 21:31:41 +0100 Subject: Start moving to esm, work on updater --- bin/postinstall.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 bin/postinstall.sh (limited to 'bin/postinstall.sh') diff --git a/bin/postinstall.sh b/bin/postinstall.sh new file mode 100644 index 0000000..85a77e7 --- /dev/null +++ b/bin/postinstall.sh @@ -0,0 +1,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 + -- cgit v1.2.3