[tor-commits] [oonib/master] Force pip to upgrade virtualenv if it was already installed.

isis at torproject.org isis at torproject.org
Sat May 4 16:10:28 UTC 2013


commit 75d3ea703ca0d122ca161188163ccf074c500858
Author: Isis Lovecruft <isis at torproject.org>
Date:   Fri Apr 19 20:21:17 2013 +0000

    Force pip to upgrade virtualenv if it was already installed.
---
 README.md |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index 83544a6..00c11d4 100644
--- a/README.md
+++ b/README.md
@@ -10,19 +10,17 @@ setting up an ooni-backend are:
 
     # Get git, python, and setuptools:
     sudo apt-get install git python2.7 python2.7-dev python-setuptools
-    cd
     # Grab the get-pip installer to make sure we have pip>=1.3.0 [1]
     curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
     sudo python ./get-pip.py  ## pip (>=1.3.0) is recommended for security reasons
     sudo update-alternatives --install /usr/bin/pip pip /usr/local/bin/pip 0
     # We recommend using a virtualenv and virtualenvwrapper makes this easier:
-    sudo pip install virtualenv virtualenvwrapper
+    sudo pip install --upgrade virtualenv virtualenvwrapper
     # Setup the virtualenv directory:
     export WORKON_HOME=~/.virtualenvs && mkdir -p $WORKON_HOME
     source /usr/local/bin/virtualenvwrapper.sh
     # Clone ooni-backend:
-    git clone https://github.com/TheTorProject/ooni-backend.git
-    cd ooni-backend
+    git clone https://github.com/TheTorProject/ooni-backend.git && cd ooni-backend
     # Create the virtualenv for ooni-backend...
     mkvirtualenv -a $PWD --unzip-setuptools --setuptools --no-site-packages oonib
     # ...and install ooni-backend (sudo is not necessary since we're in a virtualenv):





More information about the tor-commits mailing list