File: upgrade-minimum-python-version-3.10.patch

package info (click to toggle)
quantlib-swig 1.40-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,276 kB
  • sloc: python: 6,024; java: 1,552; cs: 774; makefile: 309; sh: 22
file content (27 lines) | stat: -rw-r--r-- 868 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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(