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

Cython directive 'language_level' not set #24

Open
idamir opened this issue Aug 19, 2023 · 0 comments
Open

Cython directive 'language_level' not set #24

idamir opened this issue Aug 19, 2023 · 0 comments

Comments

@idamir
Copy link

idamir commented Aug 19, 2023

Compile procedure returns the warning:
/usr/lib/python3/dist-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /<<PKGBUILDDIR>>/fdint/_fdint.pxd

To avoid it:
--- a/setup.py
+++ b/setup.py
@@ -84,7 +85,8 @@ metadata = dict(
)
.
if USE_CYTHON:
- metadata['ext_modules'] = cythonize(extensions)
+ metadata['ext_modules'] = cythonize(extensions,
+ compiler_directives={'language_level' : "3"})
else:
metadata['ext_modules'] = no_cythonize(extensions)

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

No branches or pull requests

1 participant