python3-setuptools: drop python3-2to3 from RDEPENDS
PATCH 1/1 python3-setuptools: drop python3-2to3 from RDEPENDS
2to3 module was dropped as a dependency in setuptools 58.0
--- meta/recipes-devtools/python/python3-setuptools_69.5.1.bb | 1 - 1 file changed, 1 deletion(-)
meta/recipes-devtools/python/python3-setuptools_69.5.1.bb +0 -1
@@ -16,7 +16,6 @@ SRC_URI[sha256sum] = "6c1fccdac05a97e598fb0ae3bbed5904ccb317337a51139dcd51453611 DEPENDS += "python3" RDEPENDS:${PN} = "\ - python3-2to3 \ python3-compile \ python3-compression \ python3-ctypes \
Signature · 1 line
2.34.1
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).
Quoted 7 lines · Guðni Már Gilbert via lists.openembedded.org
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
Quoted 6 lines · Ross Burton
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.
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.
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.
Quoted 7 lines · Guðni Már Gilbert via lists.openembedded.org
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
Quoted 7 lines · Ross Burton via lists.openembedded.org
Quoted 5 lines · Guðni Már Gilbert via lists.openembedded.org
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
Creating a ${PN}-tools package sounds reasonable to me.
Quoted 2 lines · Guðni Már Gilbert via lists.openembedded.org
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
Quoted 2 lines · Ross Burton
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).
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.
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
Quoted 12 lines · Guðni Már Gilbert via lists.openembedded.org
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: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-