diff --git a/pyproject.toml b/pyproject.toml index c3df9da0..94490719 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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] diff --git a/setup.py b/setup.py index 4bffc8d3..c59f54e3 100644 --- a/setup.py +++ b/setup.py @@ -239,6 +239,8 @@ if not on_rtd: ) 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