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:
parent
ae6be14822
commit
ed584554d0
1 changed files with 3 additions and 3 deletions
6
setup.py
6
setup.py
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue