Skip to content

Commit

Permalink
BLD: pin cython language level to '2'
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 committed Feb 4, 2019
1 parent 2e38d55 commit b5e1c00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5e1c00

Please sign in to comment.