Skip to content

Commit

Permalink
Remove check in Rtree.libs for candidate libs
Browse files Browse the repository at this point in the history
  • Loading branch information
mwtoews committed Jun 11, 2024
1 parent 5c3e0e2 commit 25210a2
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions rtree/finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,21 +70,6 @@ def load() -> ctypes.CDLL:
# linux shared libraries are `.so`
lib_name = "libspatialindex_c.so"

# add path for binary wheel prepared with cibuildwheel/auditwheel
try:
pkg_files = importlib.metadata.files("rtree")
if pkg_files is not None:
for file in pkg_files: # type: ignore
if (
file.parent.name == "Rtree.libs"
and file.stem.startswith("libspatialindex")
and ".so" in file.suffixes
):
_candidates.insert(1, Path(file.locate()))
break
except importlib.metadata.PackageNotFoundError:
pass

# get the starting working directory
cwd = os.getcwd()
for cand in _candidates:
Expand Down

0 comments on commit 25210a2

Please sign in to comment.