Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/python3: add tk as core module
@ 2023-12-20 13:48 J. Langholz
  2023-12-20 13:56 ` Thomas Petazzoni via buildroot
  2023-12-31 17:28 ` Yann E. MORIN
  0 siblings, 2 replies; 5+ messages in thread
From: J. Langholz @ 2023-12-20 13:48 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard, J. Langholz, Thomas Petazzoni, Asaf Kahlon

---
 package/python3/Config.in  | 6 ++++++
 package/python3/python3.mk | 9 +++++++--
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/package/python3/Config.in b/package/python3/Config.in
index 38f0580aa4..65afd4e6e2 100644
--- a/package/python3/Config.in
+++ b/package/python3/Config.in
@@ -108,6 +108,12 @@ config BR2_PACKAGE_PYTHON3_SQLITE
 	help
 	  SQLite database support
 
+config BR2_PACKAGE_PYTHON3_TK
+	bool "tk module"
+	select BR2_PACKAGE_TK
+	help
+	  tk (a.k.a. tkinter) module support
+
 config BR2_PACKAGE_PYTHON3_PYEXPAT
 	bool "xml module"
 	select BR2_PACKAGE_EXPAT
diff --git a/package/python3/python3.mk b/package/python3/python3.mk
index b9c5054a21..ca797f8cda 100644
--- a/package/python3/python3.mk
+++ b/package/python3/python3.mk
@@ -20,7 +20,6 @@ HOST_PYTHON3_CONF_OPTS += \
 	--without-ensurepip \
 	--without-cxx-main \
 	--disable-sqlite3 \
-	--disable-tk \
 	--with-expat=system \
 	--disable-curses \
 	--disable-codecs-cjk \
@@ -114,6 +113,13 @@ else
 PYTHON3_CONF_OPTS += --disable-openssl
 endif
 
+ifeq ($(BR2_PACKAGE_PYTHON3_TK),y)
+PYTHON3_DEPENDENCIES += tk
+PYTHON3_CONF_OPTS += --enable-tk
+else
+PYTHON3_CONF_OPTS += --disable-tk
+endif
+
 ifneq ($(BR2_PACKAGE_PYTHON3_CODECSCJK),y)
 PYTHON3_CONF_OPTS += --disable-codecs-cjk
 endif
@@ -184,7 +190,6 @@ PYTHON3_CONF_OPTS += \
 	--with-system-ffi \
 	--disable-pydoc \
 	--disable-test-modules \
-	--disable-tk \
 	--disable-nis \
 	--disable-idle3 \
 	--disable-pyc-build
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2024-01-03 23:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-20 13:48 [Buildroot] [PATCH] package/python3: add tk as core module J. Langholz
2023-12-20 13:56 ` Thomas Petazzoni via buildroot
2023-12-20 15:02   ` John Langholz
2023-12-31 17:28 ` Yann E. MORIN
2024-01-03 23:14   ` John Langholz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox