forked from yconst/burro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-burro.sh
43 lines (37 loc) · 1.49 KB
/
install-burro.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh -
echo "\nBurro Installer: Installing necessary libraries\n"
sudo apt-get update
sudo apt-get install --assume-yes libtiff5-dev libjpeg-dev zlib1g-dev \
libfreetype6-dev liblcms2-dev \
libwebp-dev tcl8.5-dev tk8.5-dev python-tk
sudo apt-get install --assume-yes python-numpy python-scipy python-pillow \
libhdf5-dev python-h5py python-dev python-pip
sudo apt-get install --assume-yes python-smbus i2c-tools
echo "\nBurro Installer: Creating environment\n"
sudo pip install virtualenv
virtualenv --system-site-packages burro
cd burro
echo "\nBurro Installer: Preparing Burro\n"
git clone https://github.com/yconst/burro.git
cd burro
echo "Burro Installer: Installing Python libraries\n"
echo "Burro Installer: (this can take some time..)\n"
../bin/pip install -r requirements.txt
echo "\nBurro Installer: Installing submodules\n"
git submodule update --init --recursive
echo "\nSetting up NAVIO2 drivers\n"
../bin/pip install -r Navio2/Python/requirements.txt
echo "\nSetting up Adafruit Motor HAT drivers\n"
cd Adafruit_HAT
sudo ../../bin/python setup.py install
cd ..
echo "\nSetting up Raspirobot drivers\n"
cd Raspirobot/python
sudo ../../../bin/python setup.py install
cd ../..
echo "\nBurro Installer: Creating symlinks\n"
DIR="$( cd "$( dirname "$0" )" && pwd )"
ln -s $DIR/Navio2/Python/navio2 $DIR/burro/navio2
ln -s $DIR/Navio/Python/navio $DIR/burro/navio
ln -s $DIR/Adafruit_HAT/Adafruit_MotorHAT $DIR/burro/adafruit_motorhat
echo "\nBurro Installer: Done. Run sudo start.sh to start Burro\n"