]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
setup: if the string '--reporter=bwverbose-coverage' appears on sys.argv then you...
authorZooko O'Whielacronx <zooko@zooko.com>
Fri, 21 May 2010 12:22:26 +0000 (05:22 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Fri, 21 May 2010 12:22:26 +0000 (05:22 -0700)
setup.py

index b131188ab4a5b482a089b316f396dfcf0381059e..785a39a26a304292a07bb46d0c309567bc1e80e9 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -133,6 +133,11 @@ setup_requires.extend(['setuptools_trial >= 0.5'])
 # to setup_requires. http://pypi.python.org/pypi/setuptools_darcs
 setup_requires.append('setuptools_darcs >= 1.1.0')
 
+# trialcoverage is required if you want the "trial" unit test runner to have a
+# "--reporter=bwverbose-coverage" option which produces code-coverage results.
+if "--reporter=bwverbose-coverage" in sys.argv:
+    setup_requires.append('trialcoverage >= 0.3.10')
+
 # stdeb is required to produce Debian files with the "sdist_dsc" command.
 if "sdist_dsc" in sys.argv:
     setup_requires.append('stdeb >= 0.3')