From 179766d96e1b6c1905fbcc9515c69cc8be04cf1c Mon Sep 17 00:00:00 2001 From: Julius Riegel Date: Wed, 3 Jan 2018 00:14:50 +0100 Subject: [PATCH] pygame now included in installer Now pygame will also be installed when the install.sh script is executed. Pip is required. --- .idea/modules.xml | 2 +- install.sh | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.idea/modules.xml b/.idea/modules.xml index 848246d..cde7d2f 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,7 +2,7 @@ - + \ No newline at end of file diff --git a/install.sh b/install.sh index 18e4a82..af6a0dd 100644 --- a/install.sh +++ b/install.sh @@ -8,4 +8,13 @@ sudo apt install i2c-tools sudo pip install adafruit-pca9685 sudo apt install vsftpd sudo apt install vlc -sudo modprobe bcm2835-v4l2 \ No newline at end of file +sudo modprobe bcm2835-v4l2 +if [hash pip3];then + pip install pygame + exit 0 +fi +if [hash pip];then + pip install pygame + exit 0 +fi +exit 1 \ No newline at end of file