/
install_superpack.sh
executable file
·72 lines (59 loc) · 1.71 KB
/
install_superpack.sh
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/sh
hash brew &> /dev/null
if [ $? -eq 1 ]; then
echo 'Installing Homebrew ...'
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
fi
# Ensure Homebrew formulae are updated
brew update
hash git &> /dev/null
if [ $? -eq 1 ]; then
echo 'Installing Git ...'
brew install git
fi
hash gcc &> /dev/null
if [ $? -eq 1 ]; then
echo 'No gcc detected; Installing XCode Command Line Tools ...'
xcode-select --install
fi
# Add science tap
brew tap homebrew/science
# Python tools and utilities
brew install python
brew install gcc
pip install -U nose
pip install -U six
pip install -U patsy
pip install -U pygments
pip install -U sphinx
pip install -U cython
# IPython
brew install zeromq
pip install -U jinja2
pip install -U tornado
pip install -U pyzmq
pip install -U git+git://github.com/ipython/ipython.git
# OpenBLAS for NumPy/SciPy
brew install openblas
export BLAS=/usr/local/opt/openblas/lib/libopenblas.a
export LAPACK=/usr/local/opt/openblas/lib/libopenblas.a
# Build from cloned repo to avoid SciPy build issue
git clone git@github.com:numpy/numpy.git numpy_temp
cd numpy_temp
python setupegg.py bdist_egg
easy_install dist/*egg
cd ..
rm -rf numpy_temp
# SciPy
pip install -U git+git://github.com/scipy/scipy#egg=scipy-dev
# Matplotlib
brew install freetype
pip install -U git+git://github.com/matplotlib/matplotlib.git
# Rest of the stack
pip install -U git+git://github.com/pydata/pandas.git
pip install -U git+git://github.com/scikit-learn/scikit-learn.git
pip install -U git+git://github.com/pymc-devs/pymc.git@2.3
pip install -U git+git://github.com/statsmodels/statsmodels.git
pip install -U git+git://github.com/Theano/Theano.git
# Release version of Bokeh
pip install -U bokeh