Mercurial > p > roundup > code
diff setup.py @ 197:c610319d11aa
detect unit tests
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 03 Aug 2001 02:51:06 +0000 |
| parents | 30c3a37b699f |
| children | 0345753f27cf |
line wrap: on
line diff
--- a/setup.py Fri Aug 03 02:45:47 2001 +0000 +++ b/setup.py Fri Aug 03 02:51:06 2001 +0000 @@ -1,5 +1,5 @@ #! /usr/bin/env python -# $Id: setup.py,v 1.11 2001-08-03 01:54:58 richard Exp $ +# $Id: setup.py,v 1.12 2001-08-03 02:51:06 richard Exp $ from distutils.core import setup, Extension from distutils.util import get_platform @@ -8,9 +8,14 @@ import os from roundup.templatebuilder import makeHtmlBase -print 'Running unit tests...' -import test -test.go() +try: + import unittest +except: + print 'Skipping unit tests (no unittest module found)' +else: + print 'Running unit tests...' + import test + test.go() templates = 'classic', 'extended' packagelist = [ 'roundup', 'roundup.backends', 'roundup.templates' ] @@ -36,6 +41,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.11 2001/08/03 01:54:58 richard +# Started stuff off for the 0.2.5 release +# # Revision 1.10 2001/07/30 07:17:44 richard # Just making sure we've got the right version in there for development. #
