Skip to content

Commit 99636fa

Browse files
committed
Update patch again
1 parent 2cce5f9 commit 99636fa

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

recipe/0001-win-unvendor-igraph.patch

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
diff -ruN python-igraph-0.11.9/setup.py python-igraph-0.11.9-patch/setup.py
22
--- python-igraph-0.11.9/setup.py 2025-06-11 02:02:53.000000000 +0200
3-
+++ python-igraph-0.11.9-patch/setup.py 2025-10-13 16:27:29.638189284 +0200
4-
@@ -742,6 +742,38 @@
3+
+++ python-igraph-0.11.9-patch/setup.py 2025-10-13 16:59:24.668313144 +0200
4+
@@ -742,6 +742,42 @@
55
self.libraries = [opt[2:] for opt in opts if opt.startswith("-l")]
66
self.library_dirs = [opt[2:] for opt in opts if opt.startswith("-L")]
77
self.include_dirs = [opt[2:] for opt in opts if opt.startswith("-I")]
@@ -15,7 +15,6 @@ diff -ruN python-igraph-0.11.9/setup.py python-igraph-0.11.9-patch/setup.py
1515
+ # based on availability.
1616
+ remap = {
1717
+ "xml2": "libxml2",
18-
+ "iconv": "libiconv",
1918
+ "z": "zlib",
2019
+ }
2120
+ libs = [remap.get(lib, lib) for lib in self.libraries]
@@ -33,6 +32,11 @@ diff -ruN python-igraph-0.11.9/setup.py python-igraph-0.11.9-patch/setup.py
3332
+ if use_liblzma:
3433
+ libs = ["liblzma" if lib == "lzma" else lib for lib in libs]
3534
+
35+
+ # Drop iconv on MSVC; libxml2 on Windows typically does not need
36+
+ # explicit linking against iconv, and missing import libs can
37+
+ # break linking.
38+
+ libs = [lib for lib in libs if lib != "iconv"]
39+
+
3640
+ # Remove libraries not meaningful for MSVC builds if present
3741
+ self.libraries = [
3842
+ lib for lib in libs if lib not in ("pthread", "gomp")

0 commit comments

Comments
 (0)