From 08fc674224888c7b8fe09c26ddaf030b18d95047 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4bf040b8c8e20..c8d29a2e4be5a 100755 --- a/setup.py +++ b/setup.py @@ -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