--- Begin Message ---
Subject: |
[PATCH] gnu: python-3.12: Enable loadable sqlite extensions. |
Date: |
Sun, 10 Mar 2024 21:22:44 +0000 |
This change makes it possible to load sqlite extensions with
import sqlite3
con = sqlite3.connect(":memory:")
con.enable_load_extension(True)
con.load_extension(path_to_extension)
* gnu/packages/python.scm (python-3.12)[arguments]: Add
--enable-loadable-sqlite-extensions to configure-flags.
Change-Id: I4fb0a5482c96a12a71c88bc48fffc4c3abe78544
---
gnu/packages/python.scm | 1 +
1 file changed, 1 insertion(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 12a5148cb1..e7df4d86ce 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -633,6 +633,7 @@ (define-public python-3.12
"--with-computed-gotos" ;main interpreter loop
optimization
"--enable-unicode=ucs4"
"--without-static-libpython"
+ "--enable-loadable-sqlite-extensions"
;; FIXME: These flags makes Python
significantly faster,
;; but leads to non-reproducible binaries.
base-commit: c7836393be4d134861d652b2fcf09cf4e68275ca
--
2.43.0
--- End Message ---
--- Begin Message ---
Subject: |
Re: [bug#69716] [PATCH] gnu: python-3.12: Enable loadable sqlite extensions. |
Date: |
Fri, 26 Apr 2024 08:53:45 +0200 |
Hi,
> I'm interested in loading the spatialite extension [1] for working with
> geographical data in sqlite. Spatialite is already packaged in guix
> under the name libspatialite.
seems to work. Pushed as 4caf26a4f5708f490c62f46ab68527f6fcc54295.
Lars
--- End Message ---