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

package info (click to toggle)
quantlib-swig 1.41-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,284 kB
  • sloc: python: 6,056; java: 1,552; cs: 774; makefile: 243; sh: 22
file content (44 lines) | stat: -rw-r--r-- 1,422 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Description: Upgrade minimum Python version to 3.10
Author: Luigi Ballabio <luigi.ballabio@gmail.com>
Forwarded: not-needed
Last-Update: 2026-01-14
--- quantlib-swig-1.41.orig/Python/setup.py
+++ quantlib-swig-1.41/Python/setup.py
@@ -30,7 +30,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()
 
@@ -220,7 +220,7 @@ py_limited_api = (
 
 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.orig/Python/setup.py.in
+++ quantlib-swig-1.41/Python/setup.py.in
@@ -30,7 +30,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()
 
@@ -220,7 +220,7 @@ py_limited_api = (
 
 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(