Message ID | 10bb4eeb00197f5f02a1d88368e004ba17541612.1710105764.git.felgru@posteo.net |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B951327BBEA; Sun, 10 Mar 2024 21:23:58 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 040EE27BBE2 for <patchwork@mira.cbaines.net>; Sun, 10 Mar 2024 21:23:58 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1rjQdt-0006ns-Aj; Sun, 10 Mar 2024 17:23:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rjQdr-0006ni-PM for guix-patches@gnu.org; Sun, 10 Mar 2024 17:23:35 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rjQdr-0005Wi-Hq; Sun, 10 Mar 2024 17:23:35 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rjQeI-0005W1-Ae; Sun, 10 Mar 2024 17:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69716] [PATCH] gnu: python-3.12: Enable loadable sqlite extensions. Resent-From: Felix Gruber <felgru@posteo.net> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Sun, 10 Mar 2024 21:24:02 +0000 Resent-Message-ID: <handler.69716.B.171010581621166@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69716 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69716@debbugs.gnu.org Cc: Felix Gruber <felgru@posteo.net>, Lars-Dominik Braun <lars@6xq.net>, Marius Bakke <marius@gnu.org>, Munyoki Kilyungi <me@bonfacemunyoki.com>, Sharlatan Hellseher <sharlatanus@gmail.com>, jgart <jgart@dismail.de> X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Lars-Dominik Braun <lars@6xq.net>, Marius Bakke <marius@gnu.org>, Munyoki Kilyungi <me@bonfacemunyoki.com>, Sharlatan Hellseher <sharlatanus@gmail.com>, jgart <jgart@dismail.de> Received: via spool by submit@debbugs.gnu.org id=B.171010581621166 (code B ref -1); Sun, 10 Mar 2024 21:24:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Mar 2024 21:23:36 +0000 Received: from localhost ([127.0.0.1]:38096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1rjQds-0005V7-Cq for submit@debbugs.gnu.org; Sun, 10 Mar 2024 17:23:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:32896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <felgru@posteo.net>) id 1rjQdp-0005Ux-OR for submit@debbugs.gnu.org; Sun, 10 Mar 2024 17:23:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <felgru@posteo.net>) id 1rjQdG-0006kh-HG for guix-patches@gnu.org; Sun, 10 Mar 2024 17:22:58 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <felgru@posteo.net>) id 1rjQdE-0005TW-F9 for guix-patches@gnu.org; Sun, 10 Mar 2024 17:22:58 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C8407240027 for <guix-patches@gnu.org>; Sun, 10 Mar 2024 22:22:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1710105771; bh=RMpwpk4hL+koNw0bKVBhlbiG1J804PofVDvoWn8/654=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=M6G4itaDdql1HsPjHOL8sYwBIUUJnuROJQuABTiTmbXUkSYU8+StDUQxj6fuRRFH8 pII2G6mXW2s3VsICmv8Y0NfDTRBdeZZSsHaSMLfTH4c29doVyDArzqqWnlx1z1nbY/ kKnsexyGvBixcAW6TnbUCWFiefBrXza+/KjRtQ07GcPn6NxxZjAq+oj4cgBFZfO2Ui c+QB5zW+3NE0jaNtmEFne5g2Frsz610MoeorP20lZzz0E0QkLGuk2fFxvvKbMeIaeh 48eMapc7rfdWmROctOt+1hGy8f+/dig2BcccOnSQX5xUtZniRKoZCxpqEApi6oR2x/ 2NL8qEpGBwVYA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TtCYR0d88z6twh; Sun, 10 Mar 2024 22:22:50 +0100 (CET) From: Felix Gruber <felgru@posteo.net> Date: Sun, 10 Mar 2024 21:22:44 +0000 Message-ID: <10bb4eeb00197f5f02a1d88368e004ba17541612.1710105764.git.felgru@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=felgru@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#69716] gnu: python-3.12: Enable loadable sqlite extensions.
|
|
Commit Message
Felix Gruber
March 10, 2024, 9:22 p.m. UTC
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(+) base-commit: c7836393be4d134861d652b2fcf09cf4e68275ca
Comments
Hi,
> This change makes it possible to load sqlite extensions with
what is the use-case for this? Do we have any loadable extensions for
SQLite packaged?
Lars
Hi Lars, On 3/30/24 5:10 PM, Lars-Dominik Braun wrote: >> This change makes it possible to load sqlite extensions with > > what is the use-case for this? Do we have any loadable extensions for > SQLite packaged? 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. [1]: https://www.gaia-gis.it/fossil/libspatialite/index In the end, I want to use spatialite in datasette (which is also packaged in guix) to explore geographical datasets [2,3]. [2]: https://datasette.io/for/geospatial [3]: https://datasette.io/tutorials/spatialite I don't know if we have any other loadable sqlite extensions packaged in guix, apart from libspatialite. Kind regards, Felix
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
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.