Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Cython 'language_level` directive after 1.16 release. #12356

Closed
charris opened this issue Nov 9, 2018 · 2 comments
Closed

Set Cython 'language_level` directive after 1.16 release. #12356

charris opened this issue Nov 9, 2018 · 2 comments

Comments

@charris
Copy link
Member

charris commented Nov 9, 2018

FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2).

The directive needs to be in the *.pyx files.

Reproducing code example:

import numpy as np
<< your code here >>

Error message:

Numpy/Python version information:

@sethtroisi
Copy link
Contributor

I suspect this was handled by adding "-3" to cythonize.py in #13163? or by using the new version of Cython.

@rgommers
Copy link
Member

indeed, thanks @sethtroisi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants