Issues

Issue #6 resolved

tox should try to reinstall dependencies if they failed the last time

Aaron Meurer
created an issue

This was mentioned on the mailing list (see http://lists.idyll.org/pipermail/testing-in-python/2011-June/004173.html).

Here is an example tox session {{{

!bash

$tox -v -c tox.ini.test [TOX] emptying /Users/aaronmeurer/Documents/python/sympy/sympy/.tox/log [TOX] using tox.ini: /Users/aaronmeurer/Documents/python/sympy/sympy/tox.ini.test [TOX] using tox-0.9 from /Library/Python/2.6/site-packages/tox-0.9-py2.6.egg/tox/init.pyc _____________ [tox sdist] ______________ [TOX] creating sdist package [TOX] emptying /Users/aaronmeurer/Documents/python/sympy/sympy/.tox/dist [TOX] /Users/aaronmeurer/Documents/python/sympy/sympy$ /usr/bin/python setup.py sdist --formats=zip --dist-dir .tox/dist >.tox/log/0.log [TOX] copying new sdistfile to '/Users/aaronmeurer/.tox/distshare/sympy-0.6.7-git.zip' _____________ [tox testenv:py27] _____________ [TOX] recreating virtualenv py27 (configchange/incomplete install detected) [TOX] emptying /Users/aaronmeurer/Documents/python/sympy/sympy/.tox/py27 [TOX] /Users/aaronmeurer/Documents/python/sympy/sympy/.tox$ virtualenv --distribute --no-site-packages -p /sw/bin/python2.7 py27 >py27/log/0.log [TOX] installing dependencies: notarealdep [TOX] /Users/aaronmeurer/Documents/python/sympy/sympy/.tox/py27/log$ ../bin/pip install --download-cache=/Users/aaronmeurer/Documents/python/sympy/sympy/.tox/_download notarealdep >1.log [TOX] ERROR: invocation failed, logfile: /Users/aaronmeurer/Documents/python/sympy/sympy/.tox/py27/log/1.log [TOX] ERROR: /Users/aaronmeurer/Documents/python/sympy/sympy/.tox/py27/log$ ../bin/pip install --download-cache=/Users/aaronmeurer/Documents/python/sympy/sympy/.tox/_download notarealdep >1.log Downloading/unpacking notarealdep Could not find any downloads that satisfy the requirement notarealdep No distributions at all found for notarealdep Storing complete log in /Users/aaronmeurer/.pip/pip.log

[TOX] ERROR: could not install deps [notarealdep] _______________ [tox summary] _____________ [TOX] ERROR: py27: could not install deps [notarealdep] Aaron-Meurer:sympy aaronmeurer(master$%=)$tox -v -c tox.ini.test [TOX] emptying /Users/aaronmeurer/Documents/python/sympy/sympy/.tox/log [TOX] using tox.ini: /Users/aaronmeurer/Documents/python/sympy/sympy/tox.ini.test [TOX] using tox-0.9 from /Library/Python/2.6/site-packages/tox-0.9-py2.6.egg/tox/init.pyc_____________ [tox sdist] ______________ [TOX] *creating sdist package [TOX] emptying /Users/aaronmeurer/Documents/python/sympy/sympy/.tox/dist [TOX] /Users/aaronmeurer/Documents/python/sympy/sympy$ /usr/bin/python setup.py sdist --formats=zip --dist-dir .tox/dist >.tox/log/0.log [TOX] *copying new sdistfile to '/Users/aaronmeurer/.tox/distshare/sympy-0.7.0.rc2.zip'_____________ [tox testenv:py27] _____________ [TOX] ***reusing existing matching virtualenv py27 [TOX] $ ../bin/pip install --download-cache=/Users/aaronmeurer/Documents/python/sympy/sympy/.tox/_download ../../dist/sympy-0.7.0.rc2.zip >2.log _______________ [tox summary] _____________ [TOX] py27: commands succeeded [TOX] congratulations :) $cat tox.ini.test [tox] envlist = py27

[testenv:py27] deps = notarealdep

}}}

Notice how even though installing the dependency fails, it runs without any problems the second time around. This happens when there is any kind of error installing a dependency, not just downloading.

Comments (2)

  1. Log in to comment