File: drop-pyo3-generate-import-lib.patch

package info (click to toggle)
pydantic-core 2.41.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,828 kB
  • sloc: python: 35,564; javascript: 211; makefile: 128
file content (25 lines) | stat: -rw-r--r-- 854 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
From: Colin Watson <cjwatson@debian.org>
Date: Wed, 20 Aug 2025 12:08:50 +0100
Subject: Patch out pyo3 generate-import-lib feature

It's only needed when building for Windows.

Forwarded: not-needed
Last-Update: 2025-10-17
---
 Cargo.toml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Cargo.toml b/Cargo.toml
index bf1572c..41e3a79 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -27,7 +27,7 @@ rust-version = "1.75"
 [dependencies]
 # TODO it would be very nice to remove the "py-clone" feature as it can panic,
 # but needs a bit of work to make sure it's not used in the codebase
-pyo3 = { version = "0.26", features = ["generate-import-lib", "num-bigint", "py-clone"] }
+pyo3 = { version = "0.26", features = ["num-bigint", "py-clone"] }
 regex = "1.11.3"
 strum = { version = "0.26", features = ["derive"] }
 strum_macros = "0.26"