File: 0002-Compatibility-with-cython-v3.0.x.patch

package info (click to toggle)
python-ltfatpy 1.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 41,412 kB
  • sloc: ansic: 8,546; python: 6,470; makefile: 15
file content (135 lines) | stat: -rw-r--r-- 5,153 bytes parent folder | download | duplicates (2)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Sun, 3 Dec 2023 12:28:04 +0000
Subject: Compatibility with cython v3.0.x

---
 ltfatpy/comp/comp_dct.pyx           | 2 +-
 ltfatpy/comp/comp_dst.pyx           | 2 +-
 ltfatpy/comp/comp_gabdual_long.pyx  | 2 +-
 ltfatpy/comp/comp_gabtight_long.pyx | 2 +-
 ltfatpy/comp/comp_isepdgt.pyx       | 2 +-
 ltfatpy/comp/comp_isepdgtreal.pyx   | 2 +-
 ltfatpy/comp/comp_pgauss.pyx        | 2 +-
 ltfatpy/comp/comp_sepdgt.pyx        | 4 ++--
 ltfatpy/comp/comp_sepdgtreal.pyx    | 2 +-
 9 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/ltfatpy/comp/comp_dct.pyx b/ltfatpy/comp/comp_dct.pyx
index c433265..6ed7352 100644
--- a/ltfatpy/comp/comp_dct.pyx
+++ b/ltfatpy/comp/comp_dct.pyx
@@ -64,7 +64,7 @@ from __future__ import print_function, division
 import cython
 import numpy as np
 
-from ltfat cimport ltfatInt, dct_kind, dct_cd, dct_d
+from ltfatpy.comp.ltfat cimport ltfatInt, dct_kind, dct_cd, dct_d
 from ltfatpy.comp.ltfat cimport DCTI, DCTII, DCTIII, DCTIV
 
 
diff --git a/ltfatpy/comp/comp_dst.pyx b/ltfatpy/comp/comp_dst.pyx
index 6759160..c81b403 100644
--- a/ltfatpy/comp/comp_dst.pyx
+++ b/ltfatpy/comp/comp_dst.pyx
@@ -65,7 +65,7 @@ from __future__ import print_function, division
 import cython
 import numpy as np
 
-from ltfat cimport ltfatInt, dst_kind, dst_cd, dst_d
+from ltfatpy.comp.ltfat cimport ltfatInt, dst_kind, dst_cd, dst_d
 from ltfatpy.comp.ltfat cimport DSTI, DSTII, DSTIII, DSTIV
 
 
diff --git a/ltfatpy/comp/comp_gabdual_long.pyx b/ltfatpy/comp/comp_gabdual_long.pyx
index 50b1a89..5922b87 100644
--- a/ltfatpy/comp/comp_gabdual_long.pyx
+++ b/ltfatpy/comp/comp_gabdual_long.pyx
@@ -65,7 +65,7 @@ from __future__ import print_function, division
 import cython
 import numpy as np
 
-from ltfat cimport ltfatInt, gabdual_long_d, gabdual_long_cd
+from ltfatpy.comp.ltfat cimport ltfatInt, gabdual_long_d, gabdual_long_cd
 
 # don’t check for out-of-bounds indexing.
 @cython.boundscheck(False)
diff --git a/ltfatpy/comp/comp_gabtight_long.pyx b/ltfatpy/comp/comp_gabtight_long.pyx
index 2271816..7273fb6 100644
--- a/ltfatpy/comp/comp_gabtight_long.pyx
+++ b/ltfatpy/comp/comp_gabtight_long.pyx
@@ -65,7 +65,7 @@ from __future__ import print_function, division
 import cython
 import numpy as np
 
-from ltfat cimport ltfatInt, gabtight_long_d, gabtight_long_cd
+from ltfatpy.comp.ltfat cimport ltfatInt, gabtight_long_d, gabtight_long_cd
 
 # cython: profile=True
 
diff --git a/ltfatpy/comp/comp_isepdgt.pyx b/ltfatpy/comp/comp_isepdgt.pyx
index 26ad58f..5578095 100644
--- a/ltfatpy/comp/comp_isepdgt.pyx
+++ b/ltfatpy/comp/comp_isepdgt.pyx
@@ -65,7 +65,7 @@ from __future__ import print_function, division
 import cython
 import numpy as np
 
-from ltfat cimport ltfatInt, dgt_phasetype, idgt_fb_d, idgt_long_d
+from ltfatpy.comp.ltfat cimport ltfatInt, dgt_phasetype, idgt_fb_d, idgt_long_d
 from ltfatpy.comp.ltfat cimport TIMEINV, FREQINV
 
 # don’t check for out-of-bounds indexing.
diff --git a/ltfatpy/comp/comp_isepdgtreal.pyx b/ltfatpy/comp/comp_isepdgtreal.pyx
index 0669ca6..1af9137 100644
--- a/ltfatpy/comp/comp_isepdgtreal.pyx
+++ b/ltfatpy/comp/comp_isepdgtreal.pyx
@@ -65,7 +65,7 @@ from __future__ import print_function, division
 import cython
 import numpy as np
 
-from ltfat cimport ltfatInt, dgt_phasetype, idgtreal_fb_d, idgtreal_long_d
+from ltfatpy.comp.ltfat cimport ltfatInt, dgt_phasetype, idgtreal_fb_d, idgtreal_long_d
 from ltfatpy.comp.ltfat cimport TIMEINV, FREQINV
 
 # don’t check for out-of-bounds indexing.
diff --git a/ltfatpy/comp/comp_pgauss.pyx b/ltfatpy/comp/comp_pgauss.pyx
index 71f17b4..830162b 100644
--- a/ltfatpy/comp/comp_pgauss.pyx
+++ b/ltfatpy/comp/comp_pgauss.pyx
@@ -67,7 +67,7 @@ from cython.view cimport array as cvarray
 from libc.stdlib cimport malloc, free
 import numpy as np
 
-from ltfat cimport ltfatInt, pgauss_d, pgauss_cmplx_d
+from ltfatpy.comp.ltfat cimport ltfatInt, pgauss_d, pgauss_cmplx_d
 
 # don’t check for out-of-bounds indexing.
 @cython.boundscheck(False)
diff --git a/ltfatpy/comp/comp_sepdgt.pyx b/ltfatpy/comp/comp_sepdgt.pyx
index f344203..aa206f9 100644
--- a/ltfatpy/comp/comp_sepdgt.pyx
+++ b/ltfatpy/comp/comp_sepdgt.pyx
@@ -65,8 +65,8 @@ from __future__ import print_function, division
 import cython
 import numpy as np
 
-from ltfat cimport ltfatInt, dgt_phasetype, dgt_long_cd, dgt_long_d
-from ltfat cimport dgt_fb_cd, dgt_fb_d
+from ltfatpy.comp.ltfat cimport ltfatInt, dgt_phasetype, dgt_long_cd, dgt_long_d
+from ltfatpy.comp.ltfat cimport dgt_fb_cd, dgt_fb_d
 from ltfatpy.comp.ltfat cimport TIMEINV, FREQINV
 
 
diff --git a/ltfatpy/comp/comp_sepdgtreal.pyx b/ltfatpy/comp/comp_sepdgtreal.pyx
index 153e66f..93ce2e7 100644
--- a/ltfatpy/comp/comp_sepdgtreal.pyx
+++ b/ltfatpy/comp/comp_sepdgtreal.pyx
@@ -65,7 +65,7 @@ from __future__ import print_function, division
 import cython
 import numpy as np
 
-from ltfat cimport ltfatInt, dgt_phasetype, dgtreal_fb_d, dgtreal_long_d
+from ltfatpy.comp.ltfat cimport ltfatInt, dgt_phasetype, dgtreal_fb_d, dgtreal_long_d
 from ltfatpy.comp.ltfat cimport TIMEINV, FREQINV
 from numpy import int64