From 615c35a1a4b04aa39c99453a0a9025a471cb313d Mon Sep 17 00:00:00 2001 From: richard Date: Fri, 3 Aug 2001 02:51:06 +0000 Subject: [PATCH] detect unit tests git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@203 57a73879-2fb5-44c3-a270-3262357dd7e2 --- setup.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 9eb6e39..c046990 100644 --- a/setup.py +++ b/setup.py @@ -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 @@ from glob import glob 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 @@ setup ( name = "roundup", # # $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. # -- 2.30.2