|
11 | 11 | # @summary: Mac Installation script of QSTK
|
12 | 12 | #
|
13 | 13 |
|
14 |
| -# Macports Python has already been installed. |
15 |
| - |
16 |
| -echo "Installing dependency - GIT" |
17 |
| -sudo port install git-core +svn |
18 |
| -sudo port install py27-distribute |
19 |
| -echo "Installing dependencies - Numpy Scipy matplotlib" |
20 |
| -sudo port install py27-numpy |
21 |
| -sudo port install py27-scipy |
22 |
| -sudo port install py27-matplotlib |
23 |
| -echo "Installing dependencies - developer tools" |
24 |
| -sudo easy_install python-dateutil==1.5 |
25 |
| -echo "Installing dependencies - scikits" |
26 |
| -sudo easy_install -U scikit-learn |
27 |
| -echo "Installing dependencies - pandas" |
28 |
| -sudo easy_install pandas==0.7.3 |
29 |
| -echo "Installing dependencies - Docs" |
30 |
| -sudo port install py27-epydoc |
31 |
| -echo "Installing dependencies - PYQT4" |
32 |
| -sudo port install py27-pyqt4 |
33 |
| -echo "Installing dependencies complete" |
| 14 | +# Homebrew has already been installed. |
| 15 | + |
| 16 | +echo "Installing python" |
| 17 | +brew install python |
| 18 | + |
| 19 | +brew tap samueljohn/python |
| 20 | +brew tap homebrew/science |
| 21 | + |
| 22 | +echo "virtualenv" |
| 23 | +pip install virtualenv |
| 24 | +pip install nose |
| 25 | + |
| 26 | +echo "Installing gfortran" |
| 27 | +brew install gfortran |
| 28 | + |
| 29 | +echo "Installing numpy, scipy, matplotlib" |
| 30 | +brew install numpy |
| 31 | +brew install scipy |
| 32 | +brew install matplotlib |
| 33 | + |
| 34 | +echo "Create a virtual env" |
| 35 | +mkdir QSTK |
| 36 | +cd QSTK |
| 37 | +virtualenv env --distribute --system-site-packages |
| 38 | +source env/bin/activate |
| 39 | + |
| 40 | +echo "Install pandas, scikits" |
| 41 | +pip install pandas |
| 42 | +pip install scikits.statsmodels |
| 43 | +pip install scikit-learn |
| 44 | +pip install QSTK |
| 45 | + |
0 commit comments