#!/bin/bash # Default Chimera install path CHIMERA="/data/src/chimera/Chimera64-svn" # Optional input parameter for Chimera install path if [ $1 ]; then CHIMERA=$1 fi VIRTUALENV="$(dirname $CHIMERA)/chimera-virtualenv" # Test the existence of the $CHIMERA install path if [ -d $CHIMERA ]; then echo "Chimera install path: ${CHIMERA}" else echo "Invalid Chimera install path: ${CHIMERA}" exit 1 fi export LD_LIBRARY_PATH=${CHIMERA}/lib export PATH=${CHIMERA}/bin:${PATH} mkdir -p ~/Downloads/ cd ~/Downloads/ rm -rf distribute* curl -O http://python-distribute.org/distribute_setup.py ${CHIMERA}/bin/python2.7 distribute_setup.py ${CHIMERA}/bin/easy_install pip # Install optional packages # readline requires libncurses #sudo apt-get install ncurses-base ncurses-bin #sudo apt-get install libncurses5-dev libncurses5-dbg #sudo apt-get install libncursesw5-dev libncursesw5-dbg # the ipython-readline support might not work with pip ${CHIMERA}/bin/easy_install readline ipython ${CHIMERA}/bin/pip install --upgrade bpython ${CHIMERA}/bin/pip install --upgrade pylint ${CHIMERA}/bin/pip install --upgrade pyflakes ${CHIMERA}/bin/pip install --upgrade rpyc # Add Biopython #${CHIMERA}/bin/pip install --upgrade biopython ${CHIMERA}/bin/easy_install -f http://biopython.org/DIST/ biopython # Create a virtualenv rm -rf $VIRTUALENV ${CHIMERA}/bin/easy_install virtualenv ${CHIMERA}/bin/virtualenv --clear --distribute $VIRTUALENV exit # Use the virtualenv to add new packages source ${VIRTUALENV}/bin/activate easy_install readline ipython deactivate exit