#!/bin/bash
set -eu

# On OSX 10.6, fgortran gets installed in /usr/local/gfortran 
export CC="/usr/local/gfortran/bin/gcc"
export CXX="/usr/local/gfortran/bin/g++"

#download scipy
git clone https://github.com/scipy/scipy.git

#install scipy
cd scipy
python setup.py build
python setup.py install
cd ..
python -c "import scipy; print 'Installed SciPy', scipy.__version__"
#python -c "import scipy; scipy.test()"
