All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Provide hooks for host python sqlite support - for diskcache support in LLM/AI/ML
@ 2024-06-07 14:28 Tom Mloduchowski
  2024-06-08 13:33 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Mloduchowski @ 2024-06-07 14:28 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard, Thomas Petazzoni, Asaf Kahlon

Hello everyone,

I have a need to add sqlite support on the host-python3 side (to
support diskcache, for some embedded LLM work I'm doing for kscale.dev
- separate external repo).

Hope it's acceptable to provide such hooks for package developers.

Thoughts?

Tom

Signed-off-by: Tom Mloduchowski <tom@mloduchowski.com>
---
 package/python3/python3.mk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/package/python3/python3.mk b/package/python3/python3.mk
index 5d9d77af50..385186a217 100644
--- a/package/python3/python3.mk
+++ b/package/python3/python3.mk
@@ -19,7 +19,6 @@ PYTHON3_CPE_ID_PRODUCT = python
 HOST_PYTHON3_CONF_OPTS += \
  --without-ensurepip \
  --without-cxx-main \
- --disable-sqlite3 \
  --disable-tk \
  --with-expat=system \
  --disable-codecs-cjk \
@@ -66,6 +65,12 @@ else
 HOST_PYTHON3_CONF_OPTS += --disable-openssl
 endif

+ifeq ($(BR2_PACKAGE_HOST_PYTHON3_SQLITE),y)
+HOST_PYTHON3_DEPENDENCIES += host-sqlite
+else
+HOST_PYTHON3_CONF_OPTS += --disable-sqlite3
+endif
+
 PYTHON3_INSTALL_STAGING = YES

 ifeq ($(BR2_PACKAGE_PYTHON3_2TO3),y)
--
2.39.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-08 13:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-07 14:28 [Buildroot] [PATCH] Provide hooks for host python sqlite support - for diskcache support in LLM/AI/ML Tom Mloduchowski
2024-06-08 13:33 ` Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.