Python Spatialite on Apple Silicon with Pyenv

For rapid prototyping or for running simple test cases in Django I like to use spatialite the geospatial extension to sqlite. To use Spatialite, you need to have SQLite compiled with extension support. However, both the built-in SQLite on macOS and the one from Homebrew lack this support. As a result, the Python version compiled by Pyenv also lacks this support, since it compiles a near-default configuration of Python, with SQLite extensions disabled by default....

April 28, 2023 · 2 min · 249 words · Rémi Desgrange

My Python Setup

The Python programming language is, I think, a fantastic tool. But there is two fucking thing that really makes me sad: packaging and dependency management. Today, my Linux distribution, Arch, decide that it was OK to migrate python 3.8. And it broke tons of shit on my machine. So I took a moment to re-install and harden stuff so that it doesn’t happen again. Pyenv To Have Multiple Version I use Pyenv with the plugin to handle virtualenv....

November 18, 2019 · 2 min · 228 words · Rémi Desgrange

Reducing Python Docker Images Size

I’m using docker a lot to build and deploy the software that I (try to) write. I’m also writing a lot of Python. And one of the things that really annoy me is the size of docker images. Especially python. I often laugh about the size of a hello world in Go. But in Go you can deploy your application in docker with no extra cost. So, compiling this hello world in go :...

April 19, 2019 · 6 min · 1108 words · Rémi Desgrange