venv: update distribute as well as pip

When you create a virtualenv, pip and setuptools/distribute is
installed.

When we later run install_venv.py to update the venv, we should
be sure to grab the latest versions of pip and distribute otherwise
issues like this one are masked:

  http://code.google.com/p/sqlalchemy-migrate/issues/detail?id=131

Change-Id: Id206be478ea6c5216dcee6f2f58dc91858c843f5
This commit is contained in:
Mark McLoughlin
2011-10-25 14:26:13 +01:00
parent f398289a30
commit c00cfc642a

View File

@@ -150,8 +150,9 @@ def pip_install(*args):
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.
# First things first, make sure our venv has the latest pip and distribute.
pip_install('pip')
pip_install('distribute')
# Install greenlet by hand - just listing it in the requires file does not
# get it in stalled in the right order