example.sh
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
# create a temporary directory | |
mkdir tmp_python;cd tmp_python | |
# symlink "python" to the interpreter you want | |
ln -s `which python2.6` python | |
# have mkvirtualenv use the python symlink | |
PATH="$PWD:$PATH" mkvirtualenv py26party | |
# clean up | |
cd ..; rm -rf tmp_python |