From b5e1c00a9a1a0606897b03efba5bf63b79caf3b0 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Mon, 4 Feb 2019 12:29:02 -0500 Subject: [PATCH] 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. --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 4bf040b8c8e20d..8c474dfce71ee9 100755 --- a/setup.py +++ b/setup.py @@ -472,6 +472,7 @@ def maybe_cythonize(extensions, *args, **kwargs): """ Render tempita templates before calling cythonize """ + kwargs.setdefault('language_level', '2') if len(sys.argv) > 1 and 'clean' in sys.argv: # Avoid running cythonize on `python setup.py clean` # See https://github.com/cython/cython/issues/1495