Skip to content

Commit 27ce0aa

Browse files
committed
setup.py: Support --cython-directives properly
1 parent 8403fd5 commit 27ce0aa

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ debug:
2323
$(PYTHON) setup.py build_ext --inplace --debug \
2424
--cython-always \
2525
--cython-annotate \
26-
--cython-directives linetrace=True \
26+
--cython-directives="linetrace=True" \
2727
--define ASYNCPG_DEBUG,CYTHON_TRACE,CYTHON_TRACE_NOGIL
2828

2929

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,15 @@ class build_ext(_build_ext.build_ext):
3232
'run cythonize() even if .c files are present'),
3333
('cython-annotate', None,
3434
'Produce a colorized HTML version of the Cython source.'),
35+
('cython-directives=', None,
36+
'Cythion compiler directives'),
3537
]
3638

3739
def initialize_options(self):
3840
super(build_ext, self).initialize_options()
3941
self.cython_always = False
4042
self.cython_annotate = None
43+
self.cython_directives = None
4144

4245
def finalize_options(self):
4346
need_cythonize = self.cython_always

0 commit comments

Comments
 (0)