[2.0] Remove shapely.geos.lgeos ctypes interface to GEOS#1163
Conversation
4437a92 to
6821fb8
Compare
2801aaa to
5a0a59f
Compare
3498c0c to
bc2e464
Compare
5a0a59f to
f736288
Compare
|
I updated this PR now the last PRs that were removing usages of the ctypes interface are merged. |
mwtoews
left a comment
There was a problem hiding this comment.
Good clean-up of imports, and obviously a nice clear-out of core ctypes-related modules.
There are a few remaining "ctypes" lurking around (git grep -i ctypes), but not in the package or test suite. These will get cleaned up when we revise the repo structure and docs.
As for shapely.geos, agree to keep it for now, and discuss its fate next (i.e. keep, deprecate, etc.).
|
So long, ctypes! This was really a perfect storm of trouble. Subtle differences between the way libraries are loaded on different platforms, our dynamic language's lack of guardrails against loading different versions of the same C lib, and what are, I am convinced, defects in the GEOS library. It's nice to look forward to having less of this trouble. I would still like to someday understand exactly what was going wrong. |
da8fd74 to
fbfb2f4
Compare
f736288 to
2b34edd
Compare
This is on top of #1161 and #1162 (tests will fail here until both of those are merged).
This removes the content
shapely/geos.pyandshapely/ctypes_declarations.py.The
shapely.geosmodule is kept for now just for thegeos_version(_string)variables (we should discuss whether we want to keep them long term in ageossubmodule or move them top-level as we have in pygeos, but I think that's something we can see later).