Skip to content

Instantly share code, notes, and snippets.

@rob-smallshire
Created January 20, 2013 12:49
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 rob-smallshire/4578413 to your computer and use it in GitHub Desktop.
Save rob-smallshire/4578413 to your computer and use it in GitHub Desktop.
A shell script to create a new Python 3.3 virtualenv, and then download and install distribute and pip into it.
#!/bin/bash
# Create a new Python 3.3 venv and configure it with pip
# Usage: source path/to/mkvenv <path>
set -e
pyvenv $1
cd $1
source bin/activate
curl -O http://python-distribute.org/distribute_setup.py
python distribute_setup.py
easy_install pip
rm distribute_setup.py
rm distribute-*.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment