-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·33 lines (29 loc) · 861 Bytes
/
install.sh
File metadata and controls
executable file
·33 lines (29 loc) · 861 Bytes
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
#!/usr/bin/env bash
pip install shapely
pip install fiona
if which apt-get > /dev/null;
then
# ubuntu
sudo apt-get install libgdal1i libgdal1-dev libgdal-dev \
libevent-dev \
build-essential \
python-dev python3-dev
sudo add-apt-repository ppa:ubuntugis && sudo apt-get update
sudo apt-get install gdal-bin
sudo apt-get -y install gcc gcc-c++ # gcc version
sudo pip install --upgrade setuptools
sudo pip install gdal
pip install -e geonumpy
elif which yum > /dev/null;
then
# centos
sudo yum -y install gcc gcc-c++
sudo yum install python-devel python3-devel
sudo yum install libevent-devel openssl-devel libffi-devel
pip install -e geonumpy
elif which brew > /dev/null;
then
# Mac
# TODO
pip install -e geonumpy
fi