Skip to content

Commit

Permalink
BLD: pin cython language level to '2' (#25145)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tacaswell authored and jreback committed Feb 6, 2019
1 parent bd58782 commit 2d8f0ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d8f0ab

Please sign in to comment.