Skip to content

Commit 345b677

Browse files
author
Richard Jones
committed
detect unit tests
1 parent 0f6c29f commit 345b677

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

setup.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#! /usr/bin/env python
2-
# $Id: setup.py,v 1.11 2001-08-03 01:54:58 richard Exp $
2+
# $Id: setup.py,v 1.12 2001-08-03 02:51:06 richard Exp $
33

44
from distutils.core import setup, Extension
55
from distutils.util import get_platform
@@ -8,9 +8,14 @@
88
import os
99
from roundup.templatebuilder import makeHtmlBase
1010

11-
print 'Running unit tests...'
12-
import test
13-
test.go()
11+
try:
12+
import unittest
13+
except:
14+
print 'Skipping unit tests (no unittest module found)'
15+
else:
16+
print 'Running unit tests...'
17+
import test
18+
test.go()
1419

1520
templates = 'classic', 'extended'
1621
packagelist = [ 'roundup', 'roundup.backends', 'roundup.templates' ]
@@ -36,6 +41,9 @@
3641

3742
#
3843
# $Log: not supported by cvs2svn $
44+
# Revision 1.11 2001/08/03 01:54:58 richard
45+
# Started stuff off for the 0.2.5 release
46+
#
3947
# Revision 1.10 2001/07/30 07:17:44 richard
4048
# Just making sure we've got the right version in there for development.
4149
#

0 commit comments

Comments
 (0)