Skip to content

Commit 08a4387

Browse files
committed
Automated scripts for Installation
1 parent 590900f commit 08a4387

File tree

2 files changed

+110
-0
lines changed

2 files changed

+110
-0
lines changed

Scripts/AutomatedMac.sh

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#
2+
# (c) 2011, 2012 Georgia Tech Research Corporation
3+
# This source code is released under the New BSD license. Please see
4+
# http://wiki.quantsoftware.org/index.php?title=QSTK_License
5+
# for license details.
6+
7+
# Created on Jan 16, 2013
8+
9+
# @author: Sourabh Bajaj
10+
# @contact: [email protected]
11+
# @summary: Automated Mac Installation script of QSTK
12+
#
13+
14+
echo "Install Homebrew"
15+
16+
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
17+
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile
18+
brew doctor
19+
20+
echo "Install QSTK"
21+
echo "Installing python"
22+
brew install python
23+
24+
brew tap samueljohn/python
25+
brew tap homebrew/science
26+
27+
echo "virtualenv"
28+
pip install virtualenv
29+
pip install nose
30+
31+
echo "Installing gfortran"
32+
brew install gfortran
33+
34+
echo "Installing numpy, scipy, matplotlib"
35+
brew install numpy
36+
brew install scipy
37+
brew install matplotlib
38+
39+
echo "Create a virtual env"
40+
mkdir ~/QSTK
41+
cd ~/QSTK
42+
virtualenv env --distribute --system-site-packages
43+
source ~/QSTK/env/bin/activate
44+
45+
echo "Install pandas, scikits"
46+
pip install pandas
47+
pip install scikits.statsmodels
48+
pip install scikit-learn
49+
pip install QSTK
50+
51+
echo "Test QSTK"
52+
cd ~/QSTK
53+
curl -O https://spark-public.s3.amazonaws.com/compinvesting1/QSTK-Setups/Examples.zip
54+
unzip Examples.zip
55+
python Validation.py
56+
57+
echo "Deactivating"
58+
deactivate

Scripts/AutomatedUbuntu.sh

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
#
2+
# (c) 2011, 2012 Georgia Tech Research Corporation
3+
# This source code is released under the New BSD license. Please see
4+
# http://wiki.quantsoftware.org/index.php?title=QSTK_License
5+
# for license details.
6+
7+
# Created on Jan 16, 2013
8+
9+
# @author: Sourabh Bajaj
10+
# @contact: [email protected]
11+
# @summary: Automated Ubuntu Installation script of QSTK
12+
#
13+
14+
echo "Updating apt-get"
15+
sudo apt-get update
16+
# sudo apt-get upgrade
17+
# echo "Installing dependency - GIT"
18+
# sudo apt-get install git-core
19+
echo "Installing dependencies - Numpy Scipy matplotlib"
20+
sudo apt-get install python-numpy
21+
sudo apt-get install python-scipy
22+
sudo apt-get install python-matplotlib
23+
echo "Installing dependencies - developer tools"
24+
sudo apt-get install python-dev
25+
sudo apt-get install python-setuptools
26+
sudo apt-get install python-pip
27+
echo "Installing dependencies - scikits"
28+
sudo pip install scikits.statsmodels
29+
sudo pip install scikit-learn
30+
echo "Installing dependencies - pandas"
31+
sudo pip install pandas
32+
# echo "Installing dependencies - PYQT4"
33+
# sudo apt-get install python-qt4
34+
echo "Installing dependencies - CVXOPT"
35+
sudo apt-get build-dep python-cvxopt
36+
sudo apt-get install python-cvxopt
37+
38+
echo "Installing QSTK"
39+
sudo pip install QSTK
40+
41+
echo "Install Unzip"
42+
sudo apt-get install unzip
43+
44+
echo "Examples and Validation"
45+
mkdir ~/QSTK
46+
cd ~/QSTK
47+
48+
wget https://spark-public.s3.amazonaws.com/compinvesting1/QSTK-Setups/Examples.zip
49+
unzip Examples.zip
50+
51+
echo "Validating Installation"
52+
python Validation.py

0 commit comments

Comments
 (0)