Skip to content

Commit c460a92

Browse files
meeseeksmachinejreback
authored andcommitted
Backport PR #25145: BLD: pin cython language level to '2' (#25181)
1 parent 8d8d6e9 commit c460a92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,8 @@ def run(self):
450450
# Note: if not using `cythonize`, coverage can be enabled by
451451
# pinning `ext.cython_directives = directives` to each ext in extensions.
452452
# github.com/cython/cython/wiki/enhancements-compilerdirectives#in-setuppy
453-
directives = {'linetrace': False}
453+
directives = {'linetrace': False,
454+
'language_level': 2}
454455
macros = []
455456
if linetrace:
456457
# https://pypkg.com/pypi/pytest-cython/f/tests/example-project/setup.py

0 commit comments

Comments
 (0)