Files
MINGW-packages/mingw-w64-python-rtree/0001-fix-mingw-finder.patch
مهدي شينون (Mehdi Chinoune) 4d0a0c13b0 python-rtree: rebuild against spatialindex 2.0.0
2024-06-25 16:22:05 +01:00

15 lines
453 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-7.dll"
# add search paths for conda installs
if (_sys_prefix / "conda-meta").exists() or "conda" in sys.version: