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

Merge pull request #7979 from ThomasWaldmann/use-cython3-1.4

cython: use 3str language level (default in cython3), fixes #7978
This commit is contained in:
TW 2023-12-23 22:32:28 +01:00 committed by GitHub
commit 94c37858d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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