Skip to content

Commit 2d8f0ab

Browse files
tacaswelljreback
authored andcommitted
BLD: pin cython language level to '2' (#25145)
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 bd58782 commit 2d8f0ab

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)