-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall_osx.sh
More file actions
executable file
·53 lines (44 loc) · 1.08 KB
/
install_osx.sh
File metadata and controls
executable file
·53 lines (44 loc) · 1.08 KB
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
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
#essential system packages/libraries required
ENV="ENV"
PWD=`pwd`
install_ubuntu_packages() {
sudo apt-get install g++
sudo apt-get python-dev python-pip python-virtualenv
sudo apt-get git
sudo apt-get libfreetype6-dev libpng-dev mercurial make
}
# has to activate virtuan env first
install_virtualenv(){
cd ~
virtualenv $ENV
source ./$ENV/bin/activate
}
#manually install sphinxcontrib-autorun
install_autorun(){
mkdir -p /tmp/hg
cd /tmp/hg
hg clone http://bitbucket.org/birkenfeld/sphinx-contrib/
cd sphinx-contrib/autorun
python setup.py install
}
#get the doc source from github
install_manual_source(){
mkdir -p ~/github
cd ~/github
git clone https://github.com/futuregrid/manual.git
}
#setting up essential python libraries
install_requirements(){
pip install numpy
pip install -r requirements_pre.txt
#easy_install -U distribute
pip install -r requirements.txt
#pip uninstall PIL
}
#install_ubuntu_packages
git pull
#install_virtualenv
install_autorun
#install_manual_source
#install_requirements