* [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
* Re: [Buildroot] [PATCH] Provide hooks for host python sqlite support - for diskcache support in LLM/AI/ML
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
0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2024-06-08 13:33 UTC (permalink / raw)
To: Tom Mloduchowski; +Cc: James Hilliard, Asaf Kahlon, Thomas Petazzoni, buildroot
Tom, All,
On 2024-06-07 07:28 -0700, Tom Mloduchowski spake thusly:
> 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.
Yes, please see below for a comment...
[--SNIP--]
> @@ -66,6 +65,12 @@ else
> HOST_PYTHON3_CONF_OPTS += --disable-openssl
> endif
>
> +ifeq ($(BR2_PACKAGE_HOST_PYTHON3_SQLITE),y)
There's currently no such symbol, so you'll have to also add that, à-la
BR2_PACKAGE_HOST_PYTHON3_CURSES et al.
> +HOST_PYTHON3_DEPENDENCIES += host-sqlite
You'll also need to explicitly --enable-sqlite3.
Regards,
Yann E. MORIN.
> +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
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [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.