Description: Upgrade minimum Python version to 3.10
Author: Luigi Ballabio <luigi.ballabio@gmail.com>
Forwarded: not-needed
Last-Update: 2026-04-10

--- quantlib-swig-1.41.99.orig/Python/setup.py
+++ quantlib-swig-1.41.99/Python/setup.py
@@ -31,7 +31,7 @@ def define_macros():
     define_macros = []
 
     if py_limited_api():
-        define_macros += [("Py_LIMITED_API", "0x03080000")]
+        define_macros += [("Py_LIMITED_API", "0x03100000")]
 
     if free_threading():
         define_macros += [("SWIGPYTHON_NOGIL", None), ("Py_GIL_DISABLED", None)]
@@ -226,7 +226,7 @@ def free_threading():
 
 with open("./setup.cfg", "w") as f:
     if py_limited_api():
-        f.write("[bdist_wheel]" + os.linesep + "py_limited_api=cp38" + os.linesep)
+        f.write("[bdist_wheel]" + os.linesep + "py_limited_api=cp310" + os.linesep)
 
 
 setup(
--- quantlib-swig-1.41.99.orig/Python/setup.py.in
+++ quantlib-swig-1.41.99/Python/setup.py.in
@@ -31,7 +31,7 @@ def define_macros():
     define_macros = []
 
     if py_limited_api():
-        define_macros += [("Py_LIMITED_API", "0x03080000")]
+        define_macros += [("Py_LIMITED_API", "0x03100000")]
 
     if free_threading():
         define_macros += [("SWIGPYTHON_NOGIL", None), ("Py_GIL_DISABLED", None)]
@@ -226,7 +226,7 @@ def free_threading():
 
 with open("./setup.cfg", "w") as f:
     if py_limited_api():
-        f.write("[bdist_wheel]" + os.linesep + "py_limited_api=cp38" + os.linesep)
+        f.write("[bdist_wheel]" + os.linesep + "py_limited_api=cp310" + os.linesep)
 
 
 setup(
