mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-04 04:57:07 -08:00
So that cython 3.3 is happy Closes: https://bugs.gentoo.org/981284 Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/2276 Merges: https://codeberg.org/gentoo/gentoo/pulls/2276 Signed-off-by: Sam James <sam@gentoo.org>
31 lines
1007 B
Diff
31 lines
1007 B
Diff
https://bugs.gentoo.org/981284
|
|
|
|
Raise limited api version to the minimum supported by cython 3.3
|
|
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -10,7 +10,7 @@ from Cython.Build import cythonize
|
|
#
|
|
# Py_LIMITED_API values:
|
|
#
|
|
-# 0x03080000 - Python 3.8 - the minimum version that Cython supports.
|
|
+# 0x03090000 - Python 3.9 - the minimum version that Cython-3.3 supports.
|
|
# 0x030B0000 - Python 3.11 - support typed memoryviews.
|
|
# 0x030C0000 - Python 3.12 - support vectorcall (performance improvement).
|
|
|
|
@@ -21,12 +21,11 @@ if sys.implementation.name == "cpython" and not sysconfig.get_config_var(
|
|
):
|
|
py_limited_api_kwargs = {
|
|
"define_macros": [
|
|
- # For now we are at python 3.8 as we still support 3.10.
|
|
- ("Py_LIMITED_API", 0x03080000),
|
|
+ ("Py_LIMITED_API", 0x03090000),
|
|
],
|
|
"py_limited_api": True,
|
|
}
|
|
- bdist_wheel_kwargs = {"py_limited_api": "cp38"}
|
|
+ bdist_wheel_kwargs = {"py_limited_api": "cp39"}
|
|
|
|
setup(
|
|
ext_modules=cythonize(
|