Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/python-can/Config.in: sort selects
@ 2024-02-13 12:37 Marcus Hoffmann via buildroot
  2024-02-13 12:37 ` [Buildroot] [PATCH 2/2] package/python-can: needs PYTHON3_CURSES Marcus Hoffmann via buildroot
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Marcus Hoffmann via buildroot @ 2024-02-13 12:37 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard, Angelo Compagnucci, Asaf Kahlon

Sort python builtin modules before external python libs.

Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
---
 package/python-can/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/python-can/Config.in b/package/python-can/Config.in
index a00c9263cf..61955a2b00 100644
--- a/package/python-can/Config.in
+++ b/package/python-can/Config.in
@@ -1,11 +1,11 @@
 config BR2_PACKAGE_PYTHON_CAN
 	bool "python-can"
 	select BR2_PACKAGE_PYTHON3_SQLITE # runtime
+	select BR2_PACKAGE_PYTHON3_ZLIB # runtime
 	select BR2_PACKAGE_PYTHON_MSGPACK # runtime
 	select BR2_PACKAGE_PYTHON_PACKAGING # runtime
 	select BR2_PACKAGE_PYTHON_TYPING_EXTENSIONS # runtime
 	select BR2_PACKAGE_PYTHON_WRAPT # runtime
-	select BR2_PACKAGE_PYTHON3_ZLIB
 	help
 	  This module provides controller area network support for
 	  Python.
-- 
2.34.1

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

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

* [Buildroot] [PATCH 2/2] package/python-can: needs PYTHON3_CURSES
  2024-02-13 12:37 [Buildroot] [PATCH 1/2] package/python-can/Config.in: sort selects Marcus Hoffmann via buildroot
@ 2024-02-13 12:37 ` Marcus Hoffmann via buildroot
  2024-07-22 20:37   ` Thomas Petazzoni via buildroot
  2024-07-22 20:35 ` [Buildroot] [PATCH 1/2] package/python-can/Config.in: sort selects Thomas Petazzoni via buildroot
  2024-08-31 16:45 ` Peter Korsgaard
  2 siblings, 1 reply; 6+ messages in thread
From: Marcus Hoffmann via buildroot @ 2024-02-13 12:37 UTC (permalink / raw)
  To: buildroot; +Cc: Angelo Compagnucci, James Hilliard, Asaf Kahlon

The can.viewer tool requires curses support. [1]

[1] https://github.com/hardbyte/python-can/blob/v4.3.1/can/viewer.py#L44-L53

Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
---
 package/python-can/Config.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/python-can/Config.in b/package/python-can/Config.in
index 61955a2b00..106da4560c 100644
--- a/package/python-can/Config.in
+++ b/package/python-can/Config.in
@@ -1,5 +1,6 @@
 config BR2_PACKAGE_PYTHON_CAN
 	bool "python-can"
+	select BR2_PACKAGE_PYTHON3_CURSES # runtime for can.viewer tool
 	select BR2_PACKAGE_PYTHON3_SQLITE # runtime
 	select BR2_PACKAGE_PYTHON3_ZLIB # runtime
 	select BR2_PACKAGE_PYTHON_MSGPACK # runtime
-- 
2.34.1

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

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

* Re: [Buildroot] [PATCH 1/2] package/python-can/Config.in: sort selects
  2024-02-13 12:37 [Buildroot] [PATCH 1/2] package/python-can/Config.in: sort selects Marcus Hoffmann via buildroot
  2024-02-13 12:37 ` [Buildroot] [PATCH 2/2] package/python-can: needs PYTHON3_CURSES Marcus Hoffmann via buildroot
@ 2024-07-22 20:35 ` Thomas Petazzoni via buildroot
  2024-08-31 16:45 ` Peter Korsgaard
  2 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-07-22 20:35 UTC (permalink / raw)
  To: Marcus Hoffmann via buildroot
  Cc: Asaf Kahlon, James Hilliard, Marcus Hoffmann, Angelo Compagnucci

On Tue, 13 Feb 2024 13:37:52 +0100
Marcus Hoffmann via buildroot <buildroot@buildroot.org> wrote:

> Sort python builtin modules before external python libs.
> 
> Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
> ---
>  package/python-can/Config.in | 2 +-
>  1 file changed, 1 insertion(+), 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] 6+ messages in thread

* Re: [Buildroot] [PATCH 2/2] package/python-can: needs PYTHON3_CURSES
  2024-02-13 12:37 ` [Buildroot] [PATCH 2/2] package/python-can: needs PYTHON3_CURSES Marcus Hoffmann via buildroot
@ 2024-07-22 20:37   ` Thomas Petazzoni via buildroot
  2024-08-22 10:01     ` Marcus Hoffmann via buildroot
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-07-22 20:37 UTC (permalink / raw)
  To: Marcus Hoffmann via buildroot
  Cc: James Hilliard, Angelo Compagnucci, Marcus Hoffmann, Asaf Kahlon

On Tue, 13 Feb 2024 13:37:53 +0100
Marcus Hoffmann via buildroot <buildroot@buildroot.org> wrote:

> The can.viewer tool requires curses support. [1]
> 
> [1] https://github.com/hardbyte/python-can/blob/v4.3.1/can/viewer.py#L44-L53
> 
> Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
> ---
>  package/python-can/Config.in | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/package/python-can/Config.in b/package/python-can/Config.in
> index 61955a2b00..106da4560c 100644
> --- a/package/python-can/Config.in
> +++ b/package/python-can/Config.in
> @@ -1,5 +1,6 @@
>  config BR2_PACKAGE_PYTHON_CAN
>  	bool "python-can"
> +	select BR2_PACKAGE_PYTHON3_CURSES # runtime for can.viewer tool

I am not 100% sure on this one. Do we want to make this dependency
mandatory, while it is only needed for a viewer tool, which probably
most users of python-can won't use?

I see two alternatives here:

1. Leave things are they are today, i.e let users figure out that they
   need to enable curses support for the viewer.

2. Add an explicit BR2_PACKAGE_PYTHON_CAN_VIEWER option, which selects
   BR2_PACKAGE_PYTHON3_CURSES and enables the installation of the viewer
   tool. When this option is disabled, viewer.py is not installed (or
   removed if disabling installation is not possible)

Thoughts? This is not a hard feeling on my side.

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 2/2] package/python-can: needs PYTHON3_CURSES
  2024-07-22 20:37   ` Thomas Petazzoni via buildroot
@ 2024-08-22 10:01     ` Marcus Hoffmann via buildroot
  0 siblings, 0 replies; 6+ messages in thread
From: Marcus Hoffmann via buildroot @ 2024-08-22 10:01 UTC (permalink / raw)
  To: Thomas Petazzoni, Marcus Hoffmann via buildroot
  Cc: Angelo Compagnucci, James Hilliard, Asaf Kahlon

Hi Thomas,

On 22.07.24 22:37, Thomas Petazzoni wrote:
> On Tue, 13 Feb 2024 13:37:53 +0100
> Marcus Hoffmann via buildroot <buildroot@buildroot.org> wrote:
> 
>> The can.viewer tool requires curses support. [1]
>>
>> [1] https://github.com/hardbyte/python-can/blob/v4.3.1/can/viewer.py#L44-L53
>>
>> Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
>> ---
>>   package/python-can/Config.in | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/package/python-can/Config.in b/package/python-can/Config.in
>> index 61955a2b00..106da4560c 100644
>> --- a/package/python-can/Config.in
>> +++ b/package/python-can/Config.in
>> @@ -1,5 +1,6 @@
>>   config BR2_PACKAGE_PYTHON_CAN
>>   	bool "python-can"
>> +	select BR2_PACKAGE_PYTHON3_CURSES # runtime for can.viewer tool
> 
> I am not 100% sure on this one. Do we want to make this dependency
> mandatory, while it is only needed for a viewer tool, which probably
> most users of python-can won't use?
> 
> I see two alternatives here:
> 
> 1. Leave things are they are today, i.e let users figure out that they
>     need to enable curses support for the viewer.
> 
> 2. Add an explicit BR2_PACKAGE_PYTHON_CAN_VIEWER option, which selects
>     BR2_PACKAGE_PYTHON3_CURSES and enables the installation of the viewer
>     tool. When this option is disabled, viewer.py is not installed (or
>     removed if disabling installation is not possible)
> 
> Thoughts? This is not a hard feeling on my side.

I didn't really have a strong opinion either, but I went ahead and 
submitted a patch with the second options now. Hope this makes sense :).

Marcus

> 
> Thomas

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

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

* Re: [Buildroot] [PATCH 1/2] package/python-can/Config.in: sort selects
  2024-02-13 12:37 [Buildroot] [PATCH 1/2] package/python-can/Config.in: sort selects Marcus Hoffmann via buildroot
  2024-02-13 12:37 ` [Buildroot] [PATCH 2/2] package/python-can: needs PYTHON3_CURSES Marcus Hoffmann via buildroot
  2024-07-22 20:35 ` [Buildroot] [PATCH 1/2] package/python-can/Config.in: sort selects Thomas Petazzoni via buildroot
@ 2024-08-31 16:45 ` Peter Korsgaard
  2 siblings, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2024-08-31 16:45 UTC (permalink / raw)
  To: Marcus Hoffmann via buildroot
  Cc: Asaf Kahlon, James Hilliard, Marcus Hoffmann, Angelo Compagnucci

>>>>> "Marcus" == Marcus Hoffmann via buildroot <buildroot@buildroot.org> writes:

 > Sort python builtin modules before external python libs.
 > Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>

Committed to 2024.02.x and 2024.05.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2024-08-31 16:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-13 12:37 [Buildroot] [PATCH 1/2] package/python-can/Config.in: sort selects Marcus Hoffmann via buildroot
2024-02-13 12:37 ` [Buildroot] [PATCH 2/2] package/python-can: needs PYTHON3_CURSES Marcus Hoffmann via buildroot
2024-07-22 20:37   ` Thomas Petazzoni via buildroot
2024-08-22 10:01     ` Marcus Hoffmann via buildroot
2024-07-22 20:35 ` [Buildroot] [PATCH 1/2] package/python-can/Config.in: sort selects Thomas Petazzoni via buildroot
2024-08-31 16:45 ` Peter Korsgaard

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