-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# | ||
# (c) 2011, 2012 Georgia Tech Research Corporation | ||
# This source code is released under the New BSD license. Please see | ||
# http://wiki.quantsoftware.org/index.php?title=QSTK_License | ||
# for license details. | ||
|
||
# Created on Jan 16, 2013 | ||
|
||
# @author: Sourabh Bajaj | ||
# @contact: [email protected] | ||
# @summary: Automated Mac Installation script of QSTK | ||
# | ||
|
||
echo "Install Homebrew" | ||
|
||
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" | ||
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile | ||
brew doctor | ||
|
||
echo "Install QSTK" | ||
echo "Installing python" | ||
brew install python | ||
|
||
brew tap samueljohn/python | ||
brew tap homebrew/science | ||
|
||
echo "virtualenv" | ||
pip install virtualenv | ||
pip install nose | ||
|
||
echo "Installing gfortran" | ||
brew install gfortran | ||
|
||
echo "Installing numpy, scipy, matplotlib" | ||
brew install numpy | ||
brew install scipy | ||
brew install matplotlib | ||
|
||
echo "Create a virtual env" | ||
mkdir ~/QSTK | ||
cd ~/QSTK | ||
virtualenv env --distribute --system-site-packages | ||
source ~/QSTK/env/bin/activate | ||
|
||
echo "Install pandas, scikits" | ||
pip install pandas | ||
pip install scikits.statsmodels | ||
pip install scikit-learn | ||
pip install QSTK | ||
|
||
echo "Test QSTK" | ||
cd ~/QSTK | ||
curl -O https://spark-public.s3.amazonaws.com/compinvesting1/QSTK-Setups/Examples.zip | ||
unzip Examples.zip | ||
python Validation.py | ||
|
||
echo "Deactivating" | ||
deactivate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# | ||
# (c) 2011, 2012 Georgia Tech Research Corporation | ||
# This source code is released under the New BSD license. Please see | ||
# http://wiki.quantsoftware.org/index.php?title=QSTK_License | ||
# for license details. | ||
|
||
# Created on Jan 16, 2013 | ||
|
||
# @author: Sourabh Bajaj | ||
# @contact: [email protected] | ||
# @summary: Automated Ubuntu Installation script of QSTK | ||
# | ||
|
||
echo "Updating apt-get" | ||
sudo apt-get update | ||
# sudo apt-get upgrade | ||
# echo "Installing dependency - GIT" | ||
# sudo apt-get install git-core | ||
echo "Installing dependencies - Numpy Scipy matplotlib" | ||
sudo apt-get install python-numpy | ||
sudo apt-get install python-scipy | ||
sudo apt-get install python-matplotlib | ||
echo "Installing dependencies - developer tools" | ||
sudo apt-get install python-dev | ||
sudo apt-get install python-setuptools | ||
sudo apt-get install python-pip | ||
echo "Installing dependencies - scikits" | ||
sudo pip install scikits.statsmodels | ||
sudo pip install scikit-learn | ||
echo "Installing dependencies - pandas" | ||
sudo pip install pandas | ||
# echo "Installing dependencies - PYQT4" | ||
# sudo apt-get install python-qt4 | ||
echo "Installing dependencies - CVXOPT" | ||
sudo apt-get build-dep python-cvxopt | ||
sudo apt-get install python-cvxopt | ||
|
||
echo "Installing QSTK" | ||
sudo pip install QSTK | ||
|
||
echo "Install Unzip" | ||
sudo apt-get install unzip | ||
|
||
echo "Examples and Validation" | ||
mkdir ~/QSTK | ||
cd ~/QSTK | ||
|
||
wget https://spark-public.s3.amazonaws.com/compinvesting1/QSTK-Setups/Examples.zip | ||
unzip Examples.zip | ||
|
||
echo "Validating Installation" | ||
python Validation.py |