Handle no nosetests in setup.py

This commit is contained in:
Tyler Hobbs
2014-04-03 17:57:06 -05:00
parent 8b84af3c24
commit 541576aac3

View File

@@ -26,8 +26,6 @@ try:
except ImportError:
has_subprocess = False
from nose.commands import nosetests
from cassandra import __version__
long_description = ""
@@ -35,8 +33,13 @@ with open("README.rst") as f:
long_description = f.read()
class gevent_nosetests(nosetests):
description = "run nosetests with gevent monkey patching"
try:
from nose.commands import nosetests
except ImportError:
gevent_nosetests = None
else:
class gevent_nosetests(nosetests):
description = "run nosetests with gevent monkey patching"
class DocCommand(Command):