diff options
author | holger krekel <holger@merlinux.eu> | 2010-11-27 18:05:35 +0100 |
---|---|---|
committer | holger krekel <holger@merlinux.eu> | 2010-11-27 18:05:35 +0100 |
commit | 08cb0e16babe6d215326edefab77ef8a9f0119df (patch) | |
tree | 3fb4dea338677f5e9742e16391ca96f6a01349ec | |
parent | 431fff68fc757db79c1ab24d8b5ceb92301a65e3 (diff) | |
download | tox-08cb0e16babe6d215326edefab77ef8a9f0119df.tar.gz |
print virtualenv version
-rw-r--r-- | toxbootstrap.py | 6 |
1 files 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,)) |