From 08cb0e16babe6d215326edefab77ef8a9f0119df Mon Sep 17 00:00:00 2001 From: holger krekel Date: Sat, 27 Nov 2010 18:05:35 +0100 Subject: print virtualenv version --- toxbootstrap.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/toxbootstrap.py b/toxbootstrap.py index d9d1168..058ba0d 100644 --- a/toxbootstrap.py +++ b/toxbootstrap.py @@ -221,12 +221,14 @@ def cmdline(argv=None): toxversion = get_tox_version(TENV) assert has_script(TENV, 'tox') tox_script = path.abspath(get_script_path(TENV, 'tox')) - logging.info('tox is installed at %s %s', tox_script, toxversion) + logging.info('tox is installed at %s version %s', tox_script, toxversion) virtualenv = get_script_path(TENV, 'virtualenv') + venv_version = crun('%s --version' % (virtualenv,)).strip() + logging.info('virtualenv at %s version %s', virtualenv, venv_version) # XXX: virtualenv 1.5 is broken; replace it - if crun('%s --version' % (virtualenv,)).strip() == '1.5': + if venv_version == '1.5': logging.info( 'Replacing the unstable virtualenv-1.5 with the latest stable') run('%s uninstall -y virtualenv' % (pip,)) -- cgit v1.2.1