From af18ae9aaa7162a44cc52b033926859ee20155cf Mon Sep 17 00:00:00 2001
From: Axect <axect.tg@proton.me>
Date: Fri, 22 Nov 2024 17:15:02 +0900
Subject: [PATCH 1/2] FIX: remove gil-refs feature of PyO3

---
 Cargo.toml | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml
index de83e83..df26c92 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -40,10 +40,7 @@ anyhow = "1.0"
 paste = "1.0"
 #num-complex = "0.3"
 netcdf = { version = "0.7", optional = true, default-features = false }
-pyo3 = { version = "0.23", optional = true, features = [
-  "auto-initialize",
-  "gil-refs",
-] }
+pyo3 = { version = "0.23", optional = true, features = ["auto-initialize"] }
 blas = { version = "0.22", optional = true }
 lapack = { version = "0.19", optional = true }
 serde = { version = "1.0", features = ["derive"], optional = true }

From c0c57f61fa8037b05ebae4350b32ffc0f838add3 Mon Sep 17 00:00:00 2001
From: Axect <axect.tg@proton.me>
Date: Fri, 22 Nov 2024 17:19:51 +0900
Subject: [PATCH 2/2] FIX: downgrade PyO3

---
 Cargo.toml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Cargo.toml b/Cargo.toml
index df26c92..05dbc67 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -40,7 +40,10 @@ anyhow = "1.0"
 paste = "1.0"
 #num-complex = "0.3"
 netcdf = { version = "0.7", optional = true, default-features = false }
-pyo3 = { version = "0.23", optional = true, features = ["auto-initialize"] }
+pyo3 = { version = "0.22", optional = true, features = [
+  "auto-initialize",
+  "gil-refs",
+] }
 blas = { version = "0.22", optional = true }
 lapack = { version = "0.19", optional = true }
 serde = { version = "1.0", features = ["derive"], optional = true }