All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] python3-setuptools: drop python3-2to3 from RDEPENDS
@ 2024-06-19 17:03 Guðni Már Gilbert
  2024-06-19 17:06 ` Guðni Már Gilbert
  0 siblings, 1 reply; 12+ messages in thread
From: Guðni Már Gilbert @ 2024-06-19 17:03 UTC (permalink / raw)
  To: openembedded-core; +Cc: Guðni Már Gilbert

2to3 module was dropped as a dependency in setuptools 58.0

Signed-off-by: Guðni Már Gilbert <gudni.m.g@gmail.com>
---
 meta/recipes-devtools/python/python3-setuptools_69.5.1.bb | 1 -
 1 file changed, 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3-setuptools_69.5.1.bb b/meta/recipes-devtools/python/python3-setuptools_69.5.1.bb
index 8261b09d16..cc6256db80 100644
--- a/meta/recipes-devtools/python/python3-setuptools_69.5.1.bb
+++ b/meta/recipes-devtools/python/python3-setuptools_69.5.1.bb
@@ -16,7 +16,6 @@ SRC_URI[sha256sum] = "6c1fccdac05a97e598fb0ae3bbed5904ccb317337a51139dcd51453611
 DEPENDS += "python3"
 
 RDEPENDS:${PN} = "\
-    python3-2to3 \
     python3-compile \
     python3-compression \
     python3-ctypes \
-- 
2.34.1



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

* Re: [PATCH] python3-setuptools: drop python3-2to3 from RDEPENDS
  2024-06-19 17:03 [PATCH] python3-setuptools: drop python3-2to3 from RDEPENDS Guðni Már Gilbert
@ 2024-06-19 17:06 ` Guðni Már Gilbert
  2024-06-20  9:57   ` [OE-core] " Ross Burton
  0 siblings, 1 reply; 12+ messages in thread
From: Guðni Már Gilbert @ 2024-06-19 17:06 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 242 bytes --]

Noticed this when trying to optimize my minimal image. I would love to see this in Scarthgap as well if the patch is accepted.

This change saves ~600KiB according to buildhistory output (given no other recipe is asking for python3-2to3).

[-- Attachment #2: Type: text/html, Size: 250 bytes --]

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

* Re: [OE-core] [PATCH] python3-setuptools: drop python3-2to3 from RDEPENDS
  2024-06-19 17:06 ` Guðni Már Gilbert
@ 2024-06-20  9:57   ` Ross Burton
  2024-06-20 11:19     ` Guðni Már Gilbert
  0 siblings, 1 reply; 12+ messages in thread
From: Ross Burton @ 2024-06-20  9:57 UTC (permalink / raw)
  To: gudnimar@noxmedical.com; +Cc: openembedded-core@lists.openembedded.org



> On 19 Jun 2024, at 18:06, Guðni Már Gilbert via lists.openembedded.org <gudnimar=noxmedical.com@lists.openembedded.org> wrote:
> 
> Noticed this when trying to optimize my minimal image. I would love to see this in Scarthgap as well if the patch is accepted.
> 
> This change saves ~600KiB according to buildhistory output (given no other recipe is asking for python3-2to3).

That does beg the question of why setuptools was part of a minimal image in the first place? Was that a requirement of yours, or is something pulling setuptools into all images?

Ross


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

* Re: [PATCH] python3-setuptools: drop python3-2to3 from RDEPENDS
  2024-06-20  9:57   ` [OE-core] " Ross Burton
@ 2024-06-20 11:19     ` Guðni Már Gilbert
  2024-06-20 11:30       ` Guðni Már Gilbert
  0 siblings, 1 reply; 12+ messages in thread
From: Guðni Már Gilbert @ 2024-06-20 11:19 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 826 bytes --]

On Thu, Jun 20, 2024 at 09:57 AM, Ross Burton wrote:

> 
> That does beg the question of why setuptools was part of a minimal image
> in the first place? Was that a requirement of yours, or is something
> pulling setuptools into all images?
> 
> Ross

Hi Ross,

My minimal image requires gobject-introspection which for some reason is requiring setuptools at runtime. This was not a requirement in Kirkstone, and only appeared when I migrated my project to Scarthgap.

See: https://git.openembedded.org/openembedded-core/tree/meta/recipes-gnome/gobject-introspection/gobject-introspection_1.78.1.bb?h=scarthgap#n192

I haven't looked into if this is correct or what part of gobject-introspection requires setuptools at runtime. On Kirkstone, my image ran fine without both distutils and setuptools at runtime.

[-- Attachment #2: Type: text/html, Size: 1056 bytes --]

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

* Re: [PATCH] python3-setuptools: drop python3-2to3 from RDEPENDS
  2024-06-20 11:19     ` Guðni Már Gilbert
@ 2024-06-20 11:30       ` Guðni Már Gilbert
  2024-06-20 12:46         ` [OE-core] " Ross Burton
  0 siblings, 1 reply; 12+ messages in thread
From: Guðni Már Gilbert @ 2024-06-20 11:30 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 156 bytes --]

To add to this topic, I found https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/395

I wonder if setuptools is a build-time dependency only.

[-- Attachment #2: Type: text/html, Size: 275 bytes --]

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

* Re: [OE-core] [PATCH] python3-setuptools: drop python3-2to3 from RDEPENDS
  2024-06-20 11:30       ` Guðni Már Gilbert
@ 2024-06-20 12:46         ` Ross Burton
  2024-06-21  7:47           ` Alexander Kanavin
  0 siblings, 1 reply; 12+ messages in thread
From: Ross Burton @ 2024-06-20 12:46 UTC (permalink / raw)
  To: gudnimar@noxmedical.com; +Cc: openembedded-core@lists.openembedded.org



> On 20 Jun 2024, at 12:30, Guðni Már Gilbert via lists.openembedded.org <gudnimar=noxmedical.com@lists.openembedded.org> wrote:
> 
> To add to this topic, I found https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/395
> 
> I wonder if setuptools is a build-time dependency only. 

Yes, quite possibly.

Ross

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

* Re: [OE-core] [PATCH] python3-setuptools: drop python3-2to3 from RDEPENDS
  2024-06-20 12:46         ` [OE-core] " Ross Burton
@ 2024-06-21  7:47           ` Alexander Kanavin
  2024-06-21 11:14             ` Guðni Már Gilbert
  0 siblings, 1 reply; 12+ messages in thread
From: Alexander Kanavin @ 2024-06-21  7:47 UTC (permalink / raw)
  To: ross.burton
  Cc: gudnimar@noxmedical.com, openembedded-core@lists.openembedded.org

On Thu, 20 Jun 2024 at 14:47, Ross Burton via lists.openembedded.org
<ross.burton=arm.com@lists.openembedded.org> wrote:
> > On 20 Jun 2024, at 12:30, Guðni Már Gilbert via lists.openembedded.org <gudnimar=noxmedical.com@lists.openembedded.org> wrote:
> >
> > To add to this topic, I found https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/395
> >
> > I wonder if setuptools is a build-time dependency only.
>
> Yes, quite possibly.

I think the real issue is that we place *.typelib data,
libgirepository library and g-i tools into the same target package.
The tools are what requires setuptools, but almost everyone would not
need them on the target. No idea why this wasn't raised or noticed
until now.

I guess the tools could be split into ${PN}-tools?

Alex


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

* Re: [PATCH] python3-setuptools: drop python3-2to3 from RDEPENDS
  2024-06-21  7:47           ` Alexander Kanavin
@ 2024-06-21 11:14             ` Guðni Már Gilbert
  2024-06-24 10:58               ` [OE-core] " Ross Burton
  0 siblings, 1 reply; 12+ messages in thread
From: Guðni Már Gilbert @ 2024-06-21 11:14 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 57 bytes --]

Creating a ${PN}-tools package sounds reasonable to me.

[-- Attachment #2: Type: text/html, Size: 57 bytes --]

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

* Re: [OE-core] [PATCH] python3-setuptools: drop python3-2to3 from RDEPENDS
  2024-06-21 11:14             ` Guðni Már Gilbert
@ 2024-06-24 10:58               ` Ross Burton
  2024-06-24 13:15                 ` Guðni Már Gilbert
  0 siblings, 1 reply; 12+ messages in thread
From: Ross Burton @ 2024-06-24 10:58 UTC (permalink / raw)
  To: gudnimar@noxmedical.com; +Cc: openembedded-core@lists.openembedded.org

On 21 Jun 2024, at 12:14, Guðni Már Gilbert via lists.openembedded.org <gudnimar=noxmedical.com@lists.openembedded.org> wrote:
> 
> Creating a ${PN}-tools package sounds reasonable to me. 

As you’ve a vested interest here, will you be able to produce a patch?

Thanks,
Ross

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

* Re: [PATCH] python3-setuptools: drop python3-2to3 from RDEPENDS
  2024-06-24 10:58               ` [OE-core] " Ross Burton
@ 2024-06-24 13:15                 ` Guðni Már Gilbert
  2024-06-27  8:17                   ` Guðni Már Gilbert
  0 siblings, 1 reply; 12+ messages in thread
From: Guðni Már Gilbert @ 2024-06-24 13:15 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 406 bytes --]

On Mon, Jun 24, 2024 at 10:59 AM, Ross Burton wrote:

> 
> As you’ve a vested interest here, will you be able to produce a patch?

I can try, it's not very high priority for me but should be doable within 2 weeks given I don't see any unexpected problems :) In my mind adding tools to PACKAGES and creating FILES:${PN}-tools should do the trick (And perhaps a separate RDEPENDS for tools package).

[-- Attachment #2: Type: text/html, Size: 467 bytes --]

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

* Re: [PATCH] python3-setuptools: drop python3-2to3 from RDEPENDS
  2024-06-24 13:15                 ` Guðni Már Gilbert
@ 2024-06-27  8:17                   ` Guðni Már Gilbert
  2024-06-27  8:22                     ` [OE-core] " Alexander Kanavin
  0 siblings, 1 reply; 12+ messages in thread
From: Guðni Már Gilbert @ 2024-06-27  8:17 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 188 bytes --]

I don’t mean to push but will this patch be accepted? It will be required anyway once Python 3.13 is released. The 2to3 module will be removed from the standard library in Python 3.13.

[-- Attachment #2: Type: text/html, Size: 205 bytes --]

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

* Re: [OE-core] [PATCH] python3-setuptools: drop python3-2to3 from RDEPENDS
  2024-06-27  8:17                   ` Guðni Már Gilbert
@ 2024-06-27  8:22                     ` Alexander Kanavin
  0 siblings, 0 replies; 12+ messages in thread
From: Alexander Kanavin @ 2024-06-27  8:22 UTC (permalink / raw)
  To: gudnimar; +Cc: openembedded-core

Normally I'd say there's no need to worry and it's in a staging
branch, but I don't see it there this time:
https://git.yoctoproject.org/poky/log/?h=master-next
https://git.yoctoproject.org/poky-contrib/log/?h=abelloni/master-next

Alex

On Thu, 27 Jun 2024 at 10:17, Guðni Már Gilbert via
lists.openembedded.org
<gudnimar=noxmedical.com@lists.openembedded.org> wrote:
>
> I don’t mean to push but will this patch be accepted? It will be required anyway once Python 3.13 is released. The 2to3 module will be removed from the standard library in Python 3.13.
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#201194): https://lists.openembedded.org/g/openembedded-core/message/201194
> Mute This Topic: https://lists.openembedded.org/mt/106764629/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


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

end of thread, other threads:[~2024-06-27  8:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-19 17:03 [PATCH] python3-setuptools: drop python3-2to3 from RDEPENDS Guðni Már Gilbert
2024-06-19 17:06 ` Guðni Már Gilbert
2024-06-20  9:57   ` [OE-core] " Ross Burton
2024-06-20 11:19     ` Guðni Már Gilbert
2024-06-20 11:30       ` Guðni Már Gilbert
2024-06-20 12:46         ` [OE-core] " Ross Burton
2024-06-21  7:47           ` Alexander Kanavin
2024-06-21 11:14             ` Guðni Már Gilbert
2024-06-24 10:58               ` [OE-core] " Ross Burton
2024-06-24 13:15                 ` Guðni Már Gilbert
2024-06-27  8:17                   ` Guðni Már Gilbert
2024-06-27  8:22                     ` [OE-core] " Alexander Kanavin

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.