-
-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add spatialite arm64 linux path #600
Conversation
Thanks for this! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #600 +/- ##
=======================================
Coverage 95.77% 95.77%
=======================================
Files 8 8
Lines 2840 2840
=======================================
Hits 2720 2720
Misses 120 120
☔ View full report in Codecov by Sentry. |
The tests failed because they found a spelling mistake in a completely unrelated area of the code - not sure why that had not been caught before. |
Testing this manually on macOS using Docker Desk top like this: docker run -it --rm arm64v8/ubuntu /bin/bash Then inside the container: uname -m Outputs: Then: apt install spatialite-bin libsqlite3-mod-spatialite git python3 python3-venv -y
cd /tmp
git clone https://github.com/simonw/sqlite-utils
cd sqlite-utils
python3 -m venv venv
source venv/bin/activate
pip install -e '.[test]'
sqlite-utils memory "select spatialite_version()" --load-extension=spatialite Which output:
Then I ran this: git checkout -b MikeCoats-spatialite-paths-linux-arm main
git pull https://github.com/MikeCoats/sqlite-utils.git spatialite-paths-linux-arm And now: sqlite-utils memory "select spatialite_version()" --load-extension=spatialite Outputs: [{"spatialite_version()": "5.0.1"}] |
The GIS tests now pass in that container too: pytest tests/test_gis.py
|
According to both Debian and Ubuntu, the correct “target triple” for arm64 is
aarch64-linux-gnu
, so we should be looking in/usr/lib/aarch64-linux-gnu
formod_spatialite.so
.I can confirm that on both of my Debian arm64 SBCs,
libsqlite3-mod-spatialite
installs to that path.This is a set of before and after snippets of pytest’s output for this PR.
Before
After
Issue: #599
📚 Documentation preview 📚: https://sqlite-utils--600.org.readthedocs.build/en/600/