1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-31 11:42:05 +00:00

cython: use 3str language level (default in cython3), fixes #7978

drop support for Cython 0.29.x, use Cython 3.0.x from now on.
This commit is contained in:
Thomas Waldmann 2023-12-23 21:06:10 +01:00
parent ae6be14822
commit ed584554d0
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -243,9 +243,9 @@ def members_appended(*ds):
if cythonize and cythonizing: if cythonize and cythonizing:
cython_opts = dict( cython_opts = dict(
# default language_level will be '3str' starting from Cython 3.0.0, # 3str is the default in Cython3 and we do not support older Cython releases.
# but old cython versions (< 0.29) do not know that, thus we use 3 for now. # we only set this to avoid the related FutureWarning from Cython3.
compiler_directives={'language_level': 3}, compiler_directives={'language_level': '3str'}
) )
if not is_win32: if not is_win32:
# compile .pyx extensions to .c in parallel, does not work on windows # compile .pyx extensions to .c in parallel, does not work on windows