Skip to content

Commit 89660bf

Browse files
committed
fix(Cython): re-enable cythonization in Cython gates, do not enforce typing (#2122)
1 parent 4e177fd commit 89660bf

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def list_modules(dirname, pattern):
124124
# NOTE(vytas): Now that all our codebase is Python 3.5+, specify the
125125
# Python 3 language level for Cython as well to avoid any surprises.
126126
for ext_mod in ext_modules:
127-
ext_mod.cython_directives = {'language_level': '3'}
127+
ext_mod.cython_directives = {'language_level': '3', 'annotation_typing': False}
128128

129129
cmdclass = {'build_ext': ve_build_ext}
130130
return cmdclass, ext_modules

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ commands = python "{toxinidir}/tools/clean.py" "{toxinidir}/falcon"
166166

167167
[with-cython]
168168
deps = -r{toxinidir}/requirements/tests
169+
Cython
169170
setenv =
170171
PIP_CONFIG_FILE={toxinidir}/pip.conf
171172
FALCON_DISABLE_CYTHON=

0 commit comments

Comments
 (0)