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:
parent
1432f547fe
commit
5ca4703a47
2 changed files with 3 additions and 1 deletions
|
@ -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]
|
||||
|
|
2
setup.py
2
setup.py
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue