File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11diff -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")
You can’t perform that action at this time.
0 commit comments