1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-03 13:45:31 +00:00

use language_level = 3str for cython

this will be the default in cython 3.
This commit is contained in:
Thomas Waldmann 2022-07-05 00:16:48 +02:00
parent f04b2bd255
commit ff46a03b42

View file

@ -225,9 +225,7 @@ def lib_ext_kwargs(pc, prefix_env_var, lib_name, lib_pkg_name, pc_version, lib_s
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, compiler_directives={'language_level': '3str'},
# but old cython versions (< 0.29) do not know that, thus we use 3 for now.
compiler_directives={'language_level': 3},
) )
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