Created
July 5, 2011 10:26
-
-
Save alexsparrow/1064618 to your computer and use it in GitHub Desktop.
Script to setup scons in private area via virtualenv
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/sh | |
| echo ">> Downloading virtualenv..." && \ | |
| wget http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.4.tar.gz#md5=1072b66d53c24e019a8f1304ac9d9fc5 && \ | |
| echo ">> Extracting..." && \ | |
| tar -xvzf virtualenv-1.6.4.tar.gz && \ | |
| echo ">> Creating '.pythondir'..." && \ | |
| mkdir .pythondir && \ | |
| cd virtualenv-1.6.4 && \ | |
| echo ">> Installing virtualenv..." && \ | |
| python setup.py install --prefix ../.pythondir && \ | |
| cd .. && \ | |
| echo ">> Setting up environment..." && \ | |
| PYTHONPATH=$PWD/.pythondir/lib/python2.4/site-packages/ $PWD/.pythondir/bin/virtualenv .thesis_env && \ | |
| source .thesis_env/bin/activate && \ | |
| echo ">> Installing SCons..." && \ | |
| easy_install scons && \ | |
| echo ">> Patch for latest scons brokenness" && \ | |
| # See http://scons.tigris.org/issues/show_bug.cgi?id=2111 | |
| echo "$PWD/.thesis_env/lib/python2.4/site-packages/scons-2.1.0-py2.4.egg/scons-2.1.0" > .thesis_env/lib/python2.4/site-packages/scons.pth && \ | |
| echo "Done. source .thesis_env/bin/activate" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment