Skip to content

Commit 08fc674

Browse files
committed
BLD: pin cython language level to '2'
Not explicitly pinning the language level has been producing future warnings from cython. The next release of cython is going to change the default level to '3str' under which the pandas cython extensions do not compile. The long term solution is to update the cython files to the next language level, but this is a stop-gap to keep pandas building.
1 parent 2e38d55 commit 08fc674

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)