* [Buildroot] [PATCH 1/1] package/python3: add the configuration to support python curses
@ 2023-08-25 19:56 Charles Hardin
2023-12-24 17:52 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Charles Hardin @ 2023-08-25 19:56 UTC (permalink / raw)
To: buildroot; +Cc: Charles Hardin, Thomas Petazzoni, Asaf Kahlon
Working on another project with the buildroot sdk and there
was a python configuration script that could be started from
the build which required the curses module. So, instead of
switching python interpreters just add an option to be compile
with the curses module for the host-python
Signed-off-by: Charles Hardin <ckhardin@gmail.com>
---
package/python3/Config.in.host | 5 +++++
package/python3/python3.mk | 7 ++++++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/package/python3/Config.in.host b/package/python3/Config.in.host
index 77d608bdc0..88c286c55b 100644
--- a/package/python3/Config.in.host
+++ b/package/python3/Config.in.host
@@ -12,6 +12,11 @@ config BR2_PACKAGE_HOST_PYTHON3_BZIP2
help
bz2 module for host Python3.
+config BR2_PACKAGE_HOST_PYTHON3_CURSES
+ bool "curses"
+ help
+ curses module for host Python3.
+
config BR2_PACKAGE_HOST_PYTHON3_SSL
bool "ssl"
select BR2_PACKAGE_HOST_OPENSSL
diff --git a/package/python3/python3.mk b/package/python3/python3.mk
index bdb7cfd22f..8d88a825e6 100644
--- a/package/python3/python3.mk
+++ b/package/python3/python3.mk
@@ -25,7 +25,6 @@ HOST_PYTHON3_CONF_OPTS += \
--disable-sqlite3 \
--disable-tk \
--with-expat=system \
- --disable-curses \
--disable-codecs-cjk \
--disable-nis \
--enable-unicodedata \
@@ -58,6 +57,12 @@ else
HOST_PYTHON3_CONF_OPTS += --disable-bzip2
endif
+ifeq ($(BR2_PACKAGE_HOST_PYTHON3_CURSES),y)
+HOST_PYTHON3_DEPENDENCIES += host-ncurses
+else
+HOST_PYTHON3_CONF_OPTS += --disable-curses
+endif
+
ifeq ($(BR2_PACKAGE_HOST_PYTHON3_SSL),y)
HOST_PYTHON3_DEPENDENCIES += host-openssl
else
--
2.39.2 (Apple Git-143)
_______________________________________________
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 1/1] package/python3: add the configuration to support python curses
2023-08-25 19:56 [Buildroot] [PATCH 1/1] package/python3: add the configuration to support python curses Charles Hardin
@ 2023-12-24 17:52 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-12-24 17:52 UTC (permalink / raw)
To: Charles Hardin; +Cc: Asaf Kahlon, buildroot
On Fri, 25 Aug 2023 12:56:35 -0700
Charles Hardin <ckhardin@gmail.com> wrote:
> Working on another project with the buildroot sdk and there
> was a python configuration script that could be started from
> the build which required the curses module. So, instead of
> switching python interpreters just add an option to be compile
> with the curses module for the host-python
>
> Signed-off-by: Charles Hardin <ckhardin@gmail.com>
> ---
> package/python3/Config.in.host | 5 +++++
> package/python3/python3.mk | 7 ++++++-
> 2 files changed, 11 insertions(+), 1 deletion(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
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:[~2023-12-24 17:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-25 19:56 [Buildroot] [PATCH 1/1] package/python3: add the configuration to support python curses Charles Hardin
2023-12-24 17:52 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox