Skip to content

Commit

Permalink
Backport PR #25145: BLD: pin cython language level to '2' (#25181)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeseeksmachine authored and jreback committed Feb 6, 2019
1 parent 8d8d6e9 commit c460a92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,8 @@ def run(self):
# Note: if not using `cythonize`, coverage can be enabled by
# pinning `ext.cython_directives = directives` to each ext in extensions.
# github.com/cython/cython/wiki/enhancements-compilerdirectives#in-setuppy
directives = {'linetrace': False}
directives = {'linetrace': False,
'language_level': 2}
macros = []
if linetrace:
# https://pypkg.com/pypi/pytest-cython/f/tests/example-project/setup.py
Expand Down

0 comments on commit c460a92

Please sign in to comment.