Handle no nosetests in setup.py
This commit is contained in:
11
setup.py
11
setup.py
@@ -26,8 +26,6 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
has_subprocess = False
|
has_subprocess = False
|
||||||
|
|
||||||
from nose.commands import nosetests
|
|
||||||
|
|
||||||
from cassandra import __version__
|
from cassandra import __version__
|
||||||
|
|
||||||
long_description = ""
|
long_description = ""
|
||||||
@@ -35,8 +33,13 @@ with open("README.rst") as f:
|
|||||||
long_description = f.read()
|
long_description = f.read()
|
||||||
|
|
||||||
|
|
||||||
class gevent_nosetests(nosetests):
|
try:
|
||||||
description = "run nosetests with gevent monkey patching"
|
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):
|
class DocCommand(Command):
|
||||||
|
Reference in New Issue
Block a user