Control: tags -1 patch
On Thu, 07 May 2026 18:23:09 +0200 Bastian Germann <[email protected]> wrote:
I can work around the issue (which is probably in generating the substvars)
by Build-Depending on python3-dev instead of python3-all-dev.
This is somewhat undesirable because that prevents rdeps from using it with
python3.14.
The upstream build system limits the CPython API to 3.11 when the version it's
built with is between 3.11 and 3.14, removing this upper limit per the attached
patch makes the python3 dependency not as strict:
Depends: python3-numpy, python3, python3:any, [...]
Kind Regards,
Bas
--
PGP Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1
Description: Limit API to CPython 3.11 for 3.14 too.
Author: Bas Couwenberg <[email protected]>
Bug-Debian: https://bugs.debian.org/1135954
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ FFMPEG_LIBRARIES = [
"swresample",
]
-if sys.implementation.name == "cpython" and (3, 14) > sys.version_info > (3, 11):
+if sys.implementation.name == "cpython" and sys.version_info > (3, 11):
py_limited_api = True
options = {"bdist_wheel": {"py_limited_api": "cp311"}}
define_macros = [("Py_LIMITED_API", 0x030B0000)]