@@ -1,3 +1,11 @@
|
|||||||
|
1.1.1
|
||||||
|
=====
|
||||||
|
April 16, 2014
|
||||||
|
|
||||||
|
Bug Fixes
|
||||||
|
---------
|
||||||
|
* Fix unconditional import of nose in setup.py (github #111)
|
||||||
|
|
||||||
1.1.0
|
1.1.0
|
||||||
=====
|
=====
|
||||||
April 16, 2014
|
April 16, 2014
|
||||||
|
|||||||
17
setup.py
17
setup.py
@@ -17,9 +17,11 @@ import sys
|
|||||||
import ez_setup
|
import ez_setup
|
||||||
ez_setup.use_setuptools()
|
ez_setup.use_setuptools()
|
||||||
|
|
||||||
|
run_gevent_nosetests = False
|
||||||
if __name__ == '__main__' and sys.argv[1] == "gevent_nosetests":
|
if __name__ == '__main__' and sys.argv[1] == "gevent_nosetests":
|
||||||
from gevent.monkey import patch_all
|
from gevent.monkey import patch_all
|
||||||
patch_all()
|
patch_all()
|
||||||
|
run_gevent_nosetests = True
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
from distutils.command.build_ext import build_ext
|
from distutils.command.build_ext import build_ext
|
||||||
@@ -39,8 +41,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 = ""
|
||||||
@@ -48,8 +48,12 @@ with open("README.rst") as f:
|
|||||||
long_description = f.read()
|
long_description = f.read()
|
||||||
|
|
||||||
|
|
||||||
class gevent_nosetests(nosetests):
|
gevent_nosetests = None
|
||||||
description = "run nosetests with gevent monkey patching"
|
if run_gevent_nosetests:
|
||||||
|
from nose.commands import nosetests
|
||||||
|
|
||||||
|
class gevent_nosetests(nosetests):
|
||||||
|
description = "run nosetests with gevent monkey patching"
|
||||||
|
|
||||||
|
|
||||||
class DocCommand(Command):
|
class DocCommand(Command):
|
||||||
@@ -169,7 +173,10 @@ On OSX, via homebrew:
|
|||||||
|
|
||||||
|
|
||||||
def run_setup(extensions):
|
def run_setup(extensions):
|
||||||
kw = {'cmdclass': {'doc': DocCommand, 'gevent_nosetests': gevent_nosetests}}
|
kw = {'cmdclass': {'doc': DocCommand}}
|
||||||
|
if gevent_nosetests is not None:
|
||||||
|
kw['cmdclass']['gevent_nosetests'] = gevent_nosetests
|
||||||
|
|
||||||
if extensions:
|
if extensions:
|
||||||
kw['cmdclass']['build_ext'] = build_extensions
|
kw['cmdclass']['build_ext'] = build_extensions
|
||||||
kw['ext_modules'] = extensions
|
kw['ext_modules'] = extensions
|
||||||
|
|||||||
Reference in New Issue
Block a user