Skip to content

Commit 6c9489e

Browse files
aiudirogfrozencemetery
authored andcommitted
Set language_level=2 in cythonize()
This suppresses a frequent warning about the future from Cython. [rharwood@redhat.com: rewrote commit message]
1 parent 29a1bb1 commit 6c9489e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,10 @@ def ext_modules(self):
213213
return self._ext_modules
214214

215215
if getattr(self, '_cythonized_ext_modules', None) is None:
216-
self._cythonized_ext_modules = cythonize(self._ext_modules)
216+
self._cythonized_ext_modules = cythonize(
217+
self._ext_modules,
218+
language_level=2,
219+
)
217220

218221
return self._cythonized_ext_modules
219222

0 commit comments

Comments
 (0)