MINGW-packages/mingw-w64-python-rtree/0001-fix-mingw-finder.patch
2024-03-11 18:32:45 +05:30

15 lines
451 B
Diff

--- a/rtree/finder.py
+++ b/rtree/finder.py
@@ -33,7 +33,10 @@
arch = "64"
else:
arch = "32"
- lib_name = f"spatialindex_c-{arch}.dll"
+ if "MSC" in sys.version:
+ lib_name = f"spatialindex_c-{arch}.dll"
+ else:
+ lib_name = "libspatialindex.dll"
# add search paths for conda installs
if (_sys_prefix / "conda-meta").exists() or "conda" in sys.version: