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

use and require cython3

This commit is contained in:
Thomas Waldmann 2024-01-02 19:30:14 +01:00
parent 1432f547fe
commit 5ca4703a47
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01
2 changed files with 3 additions and 1 deletions

View file

@ -66,7 +66,7 @@ where = ["src"]
"*" = ["*.c", "*.h", "*.pyx"]
[build-system]
requires = ["setuptools", "wheel", "pkgconfig", "Cython", "setuptools_scm[toml]>=6.2"]
requires = ["setuptools", "wheel", "pkgconfig", "Cython>=3", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]

View file

@ -239,6 +239,8 @@ def lib_ext_kwargs(pc, prefix_env_var, lib_name, lib_pkg_name, pc_version, lib_s
)
if cythonize and cythonizing:
# 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.
cython_opts = dict(compiler_directives={"language_level": "3str"})
if not is_win32:
# compile .pyx extensions to .c in parallel, does not work on windows