Skip to content

Commit

Permalink
Move to cythonize for extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmc committed Jul 13, 2012
1 parent a4830c8 commit 063d82e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -9,6 +9,7 @@
try:
from Cython.Distutils import build_ext
from Cython.Distutils.extension import Extension
from Cython.Build import cythonize
cython_available = True
except ImportError, e:
pass
Expand All @@ -32,8 +33,7 @@ def get_ext_modules():
except ImportError, e:
print 'WARNING: pyzmq(==2.2.0) must be installed to build cython version of gevent-zeromq (%s).' % e
return []

return [Extension('gevent_zeromq.core', ['gevent_zeromq/core.pyx'], include_dirs=zmq.get_includes())]
return cythonize([Extension('*', ['gevent_zeromq/*.pyx'], include_dirs=zmq.get_includes())])

class TestCommand(Command):
"""Custom distutils command to run the test suite."""
Expand Down

0 comments on commit 063d82e

Please sign in to comment.