Skip to content

Instantly share code, notes, and snippets.

@fspot
Created July 24, 2013 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fspot/6069739 to your computer and use it in GitHub Desktop.
Save fspot/6069739 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
echo "> Downloading virtualenv.py..."
wget -q https://raw.github.com/pypa/virtualenv/develop/virtualenv.py # -O virtualenv.py
# or curl -s https://raw.github.com/pypa/virtualenv/develop/virtualenv.py > virtualenv.py
echo "> Creating and activating new virtualenv <venv>..."
python virtualenv.py venv > out.log
source venv/bin/activate
echo "> Downloading setuptools/easy_install in <venv>..."
wget -q https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py # -O ez_setup.py
python ez_setup.py >> out.log 2>&1
echo "> Installing pip in <venv>..."
easy_install pip >> out.log 2>&1
echo "> Cleaning..."
rm *.tar.gz *.py *.pyc
rm out.log
echo "Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment