Allow building with Cython 3.x
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Sun, 21 Apr 2024 19:55:32 +0000 (20:55 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sun, 21 Apr 2024 19:55:32 +0000 (20:55 +0100)
(= Cython _version_ 3.x, not to be confused with the cython3 binary)

Author: Chad Fulton, Rebecca N. Palmer <rebecca_palmer@zoho.com>
Origin: mostly https://github.com/statsmodels/statsmodels/pull/8961
Bug-Ubuntu: https://launchpad.net/bugs/2043284
Forwarded: no

Gbp-Pq: Name cython3p0_compat.patch

statsmodels/tsa/exponential_smoothing/_ets_smooth.pyx
statsmodels/tsa/holtwinters/_exponential_smoothers.pyx
statsmodels/tsa/statespace/_filters/_inversions.pyx.in
statsmodels/tsa/statespace/_filters/_univariate.pyx.in
statsmodels/tsa/statespace/_filters/_univariate_diffuse.pyx.in

index a5418aa0c0b36da22108ce7f621d7f0c23690110..04703dbabe3526081c6f11f721681100c47c7eeb 100644 (file)
@@ -1,5 +1,5 @@
 #!python
-#cython: wraparound=False, boundscheck=False, cdivision=True
+#cython: wraparound=False, boundscheck=False, cdivision=True, cpow=True
 
 from cpython cimport bool
 import numpy as np
index b244d855cc7cfa6d173baf4acebcb1fab232c01a..787d2bd0abf082b4199928a4f2c31071b4c369fa 100644 (file)
@@ -1,5 +1,5 @@
 #!python
-#cython: language_level=3, wraparound=False, boundscheck=False, cdivision=True
+#cython: language_level=3, wraparound=False, boundscheck=False, cdivision=True, cpow=True
 
 import numpy as np
 
index 73687885bb005b494831103850c067f488d4cb1e..583957fd2617f3041a46ea64ecee9a46f8db64e3 100644 (file)
@@ -1,6 +1,7 @@
 #cython: boundscheck=False
 #cython: wraparound=False
 #cython: cdivision=False
+#cython: cpow=True
 """
 State Space Models
 
index 843a2cfbd5e1cc0e5ef122a649b9ce00f3d67e2e..bb275557641d518ffd02857cd0f49a461051b447 100644 (file)
@@ -2,6 +2,7 @@
 #cython: boundscheck=False
 #cython: wraparound=False
 #cython: cdivision=False
+#cython: cpow=True
 """
 State Space Models
 
@@ -617,4 +618,4 @@ cdef {{cython_type}} {{prefix}}loglikelihood_univariate({{prefix}}KalmanFilter k
 cdef {{cython_type}} {{prefix}}scale_univariate({{prefix}}KalmanFilter kfilter, {{prefix}}Statespace model):
     return 0
 
-{{endfor}}
\ No newline at end of file
+{{endfor}}
index 441babd17f6e2ae02b64e3dc76d96d354729ec43..7e1ed7fd3c68b31ad7209bd7c6d57eefc3bf7743 100644 (file)
@@ -2,6 +2,7 @@
 #cython: boundscheck=False
 #cython: wraparound=False
 #cython: cdivision=False
+#cython: cpow=True
 """
 State Space Models
 
@@ -300,4 +301,4 @@ cdef {{cython_type}} {{prefix}}inverse_noop_univariate_diffuse({{prefix}}KalmanF
 cdef {{cython_type}} {{prefix}}loglikelihood_univariate_diffuse({{prefix}}KalmanFilter kfilter, {{prefix}}Statespace model, {{cython_type}} determinant):
     return 0
 
-{{endfor}}
\ No newline at end of file
+{{endfor}}