Description: Upgrade minimum Python version to 3.10
Author: Luigi Ballabio <luigi.ballabio@gmail.com>
Forwarded: not-needed
Last-Update: 2025-10-31
--- quantlib-swig.orig/Python/setup.py.in
+++ quantlib-swig/Python/setup.py.in
@@ -29,7 +29,7 @@ def define_macros(py_limited_api):
 
     define_macros = []
     if py_limited_api:
-        define_macros += [("Py_LIMITED_API", "0x03080000")]
+        define_macros += [("Py_LIMITED_API", "0x03100000")]
 
     compiler = get_default_compiler()
 
@@ -215,8 +215,8 @@ py_limited_api = platform.python_implementation() == "CPython" and not sysconfig
 
 
 with open("./setup.cfg", "w") as f:
-    if py_limited_api:	
-        f.write('[bdist_wheel]' + os.linesep + 'py_limited_api=cp38' + os.linesep)
+    if py_limited_api:
+        f.write("[bdist_wheel]" + os.linesep + "py_limited_api=cp310" + os.linesep)
 
 
 setup(

