2011-03-21 10:22:51 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
2011-03-21 10:55:52 -07:00
|
|
|
PACKAGES="\
|
|
|
|
build-essential \
|
|
|
|
gfortran \
|
|
|
|
python-dev \
|
|
|
|
python-setuptools \
|
|
|
|
libblas-dev \
|
|
|
|
liblapack-dev \
|
|
|
|
libqhull-dev \
|
|
|
|
qhull-bin \
|
|
|
|
"
|
|
|
|
|
|
|
|
echo "we'll ask for your password to install a few things:"
|
|
|
|
echo "like theses packages: $PACKAGES"
|
|
|
|
|
|
|
|
sudo aptitude install -y $PACKAGES
|
2011-03-21 10:22:51 -07:00
|
|
|
|
|
|
|
sudo easy_install pip
|
|
|
|
sudo pip install mercurial
|
|
|
|
|
|
|
|
sudo pip install virtualenv
|
|
|
|
sudo pip install virtualenvwrapper
|
|
|
|
|
|
|
|
mkdir ~/.virtualenvs
|
|
|
|
echo 'source $(which virtualenvwrapper.sh)' >> .bashrc
|
2011-03-21 10:55:52 -07:00
|
|
|
source $(which virtualenvwrapper.sh)
|
2011-03-21 10:22:51 -07:00
|
|
|
|
|
|
|
mkvirtualenv --no-site-packages research
|
2011-03-21 10:55:52 -07:00
|
|
|
workon research
|
2011-03-21 10:22:51 -07:00
|
|
|
|
|
|
|
pip install numpy
|
|
|
|
pip install scipy
|
|
|
|
|
|
|
|
mkdir ~/src
|
|
|
|
cd ~/src && hg clone https://mcquay.me/hg/research
|
|
|
|
cd ~/src/research && python setup.py develop
|
|
|
|
cd ~/src/research && python test/all.py
|