Skip to content

Commit 39af4e1

Browse files
committed
Add Cython modules to setup.py
1 parent ad7e4e0 commit 39af4e1

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

cassandra/bytesio.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ython profile=True
1+
# -- cython profile=True
22

33
cdef class BytesIOReader:
44
"""

cassandra/cython_protocol_handler.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ython: profile=True
1+
# -- cython: profile=True
22

33
from libc.stdint cimport int64_t, int32_t
44

cassandra/marshal.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# cython: profile=True
1+
# -- cython: profile=True
22
# Copyright 2013-2015 DataStax, Inc.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
DistutilsExecError)
3838
from distutils.cmd import Command
3939

40-
4140
try:
4241
import subprocess
4342
has_subprocess = True
@@ -262,11 +261,13 @@ def run_setup(extensions):
262261
if "--no-cython" not in sys.argv:
263262
try:
264263
from Cython.Build import cythonize
265-
cython_candidates = ['cluster', 'concurrent', 'connection', 'cqltypes', 'marshal', 'metadata', 'pool', 'protocol', 'query', 'util']
264+
cython_candidates = ['cluster', 'concurrent', 'connection', 'cqltypes', 'metadata', 'pool', 'protocol', 'query', 'util']
266265
compile_args = [] if is_windows else ['-Wno-unused-function']
267266
extensions.extend(cythonize(
268267
[Extension('cassandra.%s' % m, ['cassandra/%s.py' % m], extra_compile_args=compile_args) for m in cython_candidates],
269268
exclude_failures=True))
269+
270+
extensions.extend(cythonize("cassandra/*.pyx"))
270271
except ImportError:
271272
sys.stderr.write("Cython is not installed. Not compiling core driver files as extensions (optional).")
272273

0 commit comments

Comments
 (0)