Created
May 6, 2013 04:14
-
-
Save devinshields/5523316 to your computer and use it in GitHub Desktop.
an environment setup script for my scikit-learn development
This file contains hidden or 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
#!/bin/bash | |
# update the local repo listing | |
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
# install gcc, python tools, pip, atlas, and an | |
sudo apt-get -y install build-essential \ | |
g++ \ | |
gcc \ | |
gfortran \ | |
git \ | |
libatlas-base-dev \ | |
libatlas-dev \ | |
libfreetype6-dev \ | |
libjpeg8-dev \ | |
libmysqlclient-dev \ | |
libpng-dev \ | |
python-dev \ | |
python-setuptools \ | |
texlive \ | |
texlive-latex-extra | |
# install python specific tools | |
sudo easy_install virtualenv pip | |
# make the development dirs | |
mkdir ~/local_dev | |
cd ~/local_dev | |
# create and start a virtual environment | |
virtualenv venv --distribute --no-site-packages | |
. venv/bin/activate | |
# local install python infrastructure | |
pip install numpy | |
pip install scipy | |
pip install pillow matplotlib nose coverage pyflakes pep8 autopep8 sphinx | |
pip install scikit-learn | |
# run unit tests | |
#nosetests --exe matplotlib # this fails from the environment var DISPLAY being undefined | |
#pip install scikit-learn | |
#nosetests --exe sklearn | |
# pull my scikit-learn fork | |
#git clone git://github.com/devinshields/scikit-learn.git | |
#cd scikit-learn | |
#git checkout issue1506 | |
# build out the project and documentation | |
#cd doc | |
#make html | |
# install and kick off a web server to look at the rendered docs | |
#sudo apt-get -y install apache2 | |
#cd /etc/apache2/sites-available | |
#sudo vi default # change the working dir to /home/ubuntu | |
#sudo /etc/init.d/apache2 restart | |
# zip up the compiled results | |
#tar -zcvf scikit-learn.tar.gz scikit-learn | |
# after logging out, download the tarball to local | |
#rsync -v -e "ssh -i /Users/admin/.ssh/ec2_web.pem" [email protected]:local_dev/scikit-learn.tar.gz ./ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment