| | 90 | }}} |
| | 91 | |
| | 92 | === A bash script to install setup tools and virtualenv === |
| | 93 | |
| | 94 | {{{ |
| | 95 | #!/bin/bash |
| | 96 | # Default Chimera install path |
| | 97 | CHIMERA="${HOME}/src/Chimera64-daily" |
| | 98 | # Optional input parameter for Chimera install path |
| | 99 | if [ $1 ]; then |
| | 100 | CHIMERA=$1 |
| | 101 | fi |
| | 102 | # Test the existence of the $CHIMERA install path |
| | 103 | if [ -d $CHIMERA ]; then |
| | 104 | echo "Chimera install path: ${CHIMERA}" |
| | 105 | else |
| | 106 | echo "Invalid Chimera install path: ${CHIMERA}" |
| | 107 | exit 1 |
| | 108 | fi |
| | 109 | export LD_LIBRARY_PATH=${CHIMERA}/lib |
| | 110 | export PATH=${CHIMERA}/bin:${PATH} |
| | 111 | mkdir -p ~/Downloads/ |
| | 112 | cd ~/Downloads/ |
| | 113 | rm -rf distribute* |
| | 114 | curl -O http://python-distribute.org/distribute_setup.py |
| | 115 | ${CHIMERA}/bin/python2.7 distribute_setup.py |
| | 116 | ${CHIMERA}/bin/easy_install virtualenv |