summarylogtreecommitdiffstats
path: root/cython3.patch
blob: cb28a18c92e417abb99bde735699e2413dde540f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- a/setup.py	2023-05-19 08:59:27.619223728 +0530
+++ b/setup.py	2023-05-19 09:03:12.750132242 +0530
@@ -28,10 +28,12 @@
         include_dirs=include_dirs,
     ),
 ]
+for e in extensions:
+    e.cython_directives = {'language_level': "3"}
 
 from Cython.Build import cythonize
 
-ext_modules = cythonize(extensions, language_level=2)
+ext_modules = cythonize(extensions, compiler_directives={'language_level' : "3"})
 
 
 setup(ext_modules=ext_modules)