-
Notifications
You must be signed in to change notification settings - Fork 11
/
init.sh
executable file
·41 lines (33 loc) · 955 Bytes
/
init.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
#!/bin/bash
if [[ $EUID -eq 0 ]]; then
echo "Do *not* run this as root, sudo will be used as needed."
exit 1
fi
# change to the directory this script is running in, so work will
# be relative to a known path
TOP=$(cd $(dirname $0) && pwd)
# abort install if any errors occur and enable tracing
set -o errexit
set -o xtrace
sudo apt-get update
sudo apt-get install -y --force-yes python-software-properties
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install -y --force-yes \
build-essential \
pylint \
pep8 \
python-dev \
python-pip \
python-numpy \
python-nose \
python-nosexcover \
python-gdal \
python-setuptools \
python-scipy \
python-matplotlib \
# install radiometric_normalization
echo $TOP | sudo tee /usr/local/lib/python2.7/dist-packages/radiometric_normalization.pth
sudo pip install pyflakes
sudo pip install scikit-learn
set +o xtrace