Skip to content

Instantly share code, notes, and snippets.

View alphavector's full-sized avatar
🏠
Working from home

Marat Idrisov alphavector

🏠
Working from home
View GitHub Profile
@bpartridge
bpartridge / patch_geos.py
Created December 19, 2021 04:08
Django GEOS patch for macOS arm64
def patch_geos_signatures():
"""
Patch GEOS to function on macOS arm64 and presumably
other odd architectures by ensuring that call signatures
are explicit, and that Django 4 bugfixes are backported.
Should work on Django 2.2+, minimally tested, caveat emptor.
"""
import logging