Created
March 23, 2010 23:56
-
-
Save satra/341830 to your computer and use it in GitHub Desktop.
This file contains 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 | |
basedir=$1 | |
mkdir -p $basedir | |
mkdir -p installdir | |
cd installdir | |
# install python if it doesn't exist | |
if [ ! -e $basedir/bin/python ]; then | |
wget http://www.python.org/ftp/python/2.6.2/Python-2.6.2.tgz | |
mkdir -p temp | |
cd temp | |
tar zxf ../Python-2.6.2.tgz | |
mkdir -p build | |
cd build | |
../Python-2.6.2/configure --prefix=$basedir | |
make | |
make install | |
cd .. | |
cd .. | |
fi | |
export PATH=$basedir/bin/:$PATH | |
# install setuptools | |
if [ ! -e $basedir/bin/easy_install ]; then | |
mkdir -p temp | |
cd temp | |
wget http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c9-py2.6.egg | |
sh setuptools-0.6c9-py2.6.egg | |
cd .. | |
fi | |
if [ -e $basedir/bin/easy_install ]; then | |
# install the rest using easy_install | |
easy_install sphinx | |
easy_install numpy | |
easy_install http://downloads.sourceforge.net/sourceforge/scipy/scipy-0.7.1.tar.gz | |
easy_install http://downloads.sourceforge.net/sourceforge/matplotlib/matplotlib-0.98.5.3.tar.gz | |
easy_install ipython[kernel] | |
easy_install ipython[security] | |
easy_install networkx | |
easy_install nose | |
easy_install grin | |
easy_install pygraphviz | |
fi | |
cd .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment