Skip to content

Commit 0daffc1

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 0daffc1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ def maybe_cythonize(extensions, *args, **kwargs):
472472
"""
473473
Render tempita templates before calling cythonize
474474
"""
475+
kwargs.setdefault('language_level', 2)
475476
if len(sys.argv) > 1 and 'clean' in sys.argv:
476477
# Avoid running cythonize on `python setup.py clean`
477478
# See https://github.com/cython/cython/issues/1495

0 commit comments

Comments
 (0)