Allow building with Cython 3.x
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Sat, 11 Nov 2023 20:34:28 +0000 (20:34 +0000)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Sat, 11 Nov 2023 20:34:28 +0000 (20:34 +0000)
(= Cython _version_ 3.x, not to be confused with the cython3 binary)

Author: Chad Fulton
Origin: https://github.com/statsmodels/statsmodels/pull/8961
Bug-Ubuntu: https://launchpad.net/bugs/2043284
Forwarded: not-needed (see Origin - but not merged yet)

Gbp-Pq: Name cython3p0_compat.patch

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

index e769c0f4019c67e84d509ff1152bfa069d24e895..1766d1716d59dedd10facca39e1ef856f0e07834 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 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}}