]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Nail the pip requirement at 1.1.
authorDan Prince <dprince@redhat.com>
Fri, 7 Sep 2012 01:54:16 +0000 (21:54 -0400)
committerDan Prince <dprince@redhat.com>
Mon, 10 Sep 2012 18:11:08 +0000 (14:11 -0400)
The most recent version of pip (1.2.1 as of a couple days ago) fails
to install the required Cinder .venv packages. Nailing the installed
pip version when using run_tests.sh seems like a reasonable solution
to this issue.

Fixes LP Bug #1047120.

Change-Id: I8d831f747b0d25b5d0f6e74a234e764ff448965b

tools/install_venv.py

index ad6288549ae828257203fec29def4459901df078..bd324efd535c90014c1d1f89f4c59eb6a8db043c 100644 (file)
@@ -183,7 +183,10 @@ def install_dependencies(venv=VENV):
     print 'Installing dependencies with pip (this can take a while)...'
 
     # First things first, make sure our venv has the latest pip and distribute.
-    pip_install('pip')
+    # NOTE: we keep pip at version 1.1 since the most recent version causes
+    # the .venv creation to fail. See:
+    # https://bugs.launchpad.net/nova/+bug/1047120
+    pip_install('pip==1.1')
     pip_install('distribute')
 
     # Install greenlet by hand - just listing it in the requires file does not