package/python-setuptools: bump to version 84.0.0
PATCH v2 1/9 package/python-setuptools: bump to version 84.0.0
--- package/python-setuptools/python-setuptools.hash | 4 ++-- package/python-setuptools/python-setuptools.mk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
package/python-setuptools/python-setuptools.hash +2 -2
@@ -1,5 +1,5 @@ # md5, sha256 from https://pypi.org/pypi/setuptools/json -md5 82e1d67883b713f9493659b50d13b436 setuptools-80.9.0.tar.gz -sha256 f36b47402ecde768dbfafc46e8e4207b4360c654f1f3bb84475f0a28628fb19c setuptools-80.9.0.tar.gz +md5 c6919a4b0862ca30604559e163a6cce9 setuptools-84.0.0.tar.gz +sha256 f4695c21257f0d9b537ec2692c941d02ee143b7cc1276941349a546573b2ef73 setuptools-84.0.0.tar.gz # Locally computed sha256 checksums sha256 86da0f01aeae46348a3c3d465195dc1ceccde79f79e87769a64b8da04b2a4741 LICENSE
package/python-setuptools/python-setuptools.mk +2 -2
@@ -4,9 +4,9 @@ # ################################################################################ -PYTHON_SETUPTOOLS_VERSION = 80.9.0 +PYTHON_SETUPTOOLS_VERSION = 84.0.0 PYTHON_SETUPTOOLS_SOURCE = setuptools-$(PYTHON_SETUPTOOLS_VERSION).tar.gz -PYTHON_SETUPTOOLS_SITE = https://files.pythonhosted.org/packages/18/5d/3bf57dcd21979b887f014ea83c24ae194cfcd12b9e0fda66b957c69d1fca +PYTHON_SETUPTOOLS_SITE = https://files.pythonhosted.org/packages/6d/44/f5da03a8ef95d369145c5bb53050e7877c9f3d312e128605fd9504829143 PYTHON_SETUPTOOLS_LICENSE = MIT PYTHON_SETUPTOOLS_LICENSE_FILES = LICENSE PYTHON_SETUPTOOLS_CPE_ID_VENDOR = python
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 2/9 package/python-autocommand: add host variant
Enable a host variant for host-python-jaraco-text, which is needed by the standalone pkg_resources package.
--- package/python-autocommand/python-autocommand.mk | 1 + 1 file changed, 1 insertion(+)
package/python-autocommand/python-autocommand.mk +1 -0
@@ -12,3 +12,4 @@ PYTHON_AUTOCOMMAND_LICENSE = LGPL-3.0+ PYTHON_AUTOCOMMAND_LICENSE_FILES = LICENSE $(eval $(python-package)) +$(eval $(host-python-package))
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 3/9 package/python-more-itertools: add host variant
In reply to James HilliardEnable a host variant for host-python-jaraco-functools and host-python-jaraco-text, which are needed by the standalone pkg_resources package.
--- package/python-more-itertools/python-more-itertools.mk | 1 + 1 file changed, 1 insertion(+)
package/python-more-itertools/python-more-itertools.mk +1 -0
@@ -12,3 +12,4 @@ PYTHON_MORE_ITERTOOLS_LICENSE = MIT PYTHON_MORE_ITERTOOLS_LICENSE_FILES = LICENSE $(eval $(python-package)) +$(eval $(host-python-package))
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 4/9 package/python-jaraco-context: add host variant
In reply to James HilliardEnable a host variant for host-python-jaraco-text and carry over its build dependencies.
--- package/python-jaraco-context/python-jaraco-context.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/python-jaraco-context/python-jaraco-context.mk +4 -0
@@ -13,5 +13,9 @@ PYTHON_JARACO_CONTEXT_LICENSE_FILES = LICENSE PYTHON_JARACO_CONTEXT_DEPENDENCIES = \ host-python-coherent-licensed \ host-python-setuptools-scm +HOST_PYTHON_JARACO_CONTEXT_DEPENDENCIES = \ + host-python-coherent-licensed \ + host-python-setuptools-scm $(eval $(python-package)) +$(eval $(host-python-package))
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 5/9 package/python-jaraco-functools: add host variant
In reply to James HilliardEnable a host variant for host-python-jaraco-text. Include more-itertools as a runtime dependency in addition to the build dependencies.
--- package/python-jaraco-functools/python-jaraco-functools.mk | 5 +++++ 1 file changed, 5 insertions(+)
package/python-jaraco-functools/python-jaraco-functools.mk +5 -0
@@ -13,5 +13,10 @@ PYTHON_JARACO_FUNCTOOLS_SETUP_TYPE = setuptools PYTHON_JARACO_FUNCTOOLS_DEPENDENCIES = \ host-python-coherent-licensed \ host-python-setuptools-scm +HOST_PYTHON_JARACO_FUNCTOOLS_DEPENDENCIES = \ + host-python-coherent-licensed \ + host-python-more-itertools \ + host-python-setuptools-scm $(eval $(python-package)) +$(eval $(host-python-package))
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 6/9 package/python-jaraco-text: add host variant
In reply to James HilliardEnable a host variant for the standalone pkg_resources package. Include its runtime dependencies as well as setuptools-scm, which is needed to build the package.
--- package/python-jaraco-text/python-jaraco-text.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/python-jaraco-text/python-jaraco-text.mk +7 -0
@@ -11,5 +11,12 @@ PYTHON_JARACO_TEXT_SETUP_TYPE = setuptools PYTHON_JARACO_TEXT_LICENSE = MIT PYTHON_JARACO_TEXT_LICENSE_FILES = LICENSE PYTHON_JARACO_TEXT_DEPENDENCIES = host-python-setuptools-scm +HOST_PYTHON_JARACO_TEXT_DEPENDENCIES = \ + host-python-autocommand \ + host-python-jaraco-context \ + host-python-jaraco-functools \ + host-python-more-itertools \ + host-python-setuptools-scm $(eval $(python-package)) +$(eval $(host-python-package))
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 7/9 package/python-platformdirs: add host variant
In reply to James HilliardEnable a host variant for the standalone pkg_resources package and include the hatch-vcs build dependency.
--- package/python-platformdirs/python-platformdirs.mk | 2 ++ 1 file changed, 2 insertions(+)
package/python-platformdirs/python-platformdirs.mk +2 -0
@@ -11,5 +11,7 @@ PYTHON_PLATFORMDIRS_SETUP_TYPE = hatch PYTHON_PLATFORMDIRS_LICENSE = MIT PYTHON_PLATFORMDIRS_LICENSE_FILES = LICENSE PYTHON_PLATFORMDIRS_DEPENDENCIES = host-python-hatch-vcs +HOST_PYTHON_PLATFORMDIRS_DEPENDENCIES = host-python-hatch-vcs $(eval $(python-package)) +$(eval $(host-python-package))
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 8/9 package/python-pkg-resources: new host package
In reply to James HilliardSetuptools 82 removed pkg_resources, but older U-Boot Binman versions still use it. Package the standalone PyPA snapshot so these consumers can keep working when setuptools is updated.
Add a small setuptools pyproject.toml to build the module from its repository-root layout, and include the license addition proposed upstream. Supply packaging, jaraco.text and platformdirs explicitly, as the standalone module imports all three at runtime.
Add a host runtime test covering resource access, dependency resolution and cache lookup.
--- .../0001-LICENSE-copy-from-setuptools.patch | 39 +++++++++++++++++++ ...-metadata-for-the-standalone-package.patch | 39 +++++++++++++++++++ .../python-pkg-resources.hash | 3 ++ .../python-pkg-resources.mk | 17 ++++++++ .../package/test_python_pkg_resources.py | 14 +++++++ 5 files changed, 112 insertions(+) create mode 100644 package/python-pkg-resources/0001-LICENSE-copy-from-setuptools.patch create mode 100644 package/python-pkg-resources/0002-Add-build-metadata-for-the-standalone-package.patch create mode 100644 package/python-pkg-resources/python-pkg-resources.hash create mode 100644 package/python-pkg-resources/python-pkg-resources.mk create mode 100644 support/testing/tests/package/test_python_pkg_resources.py
package/python-pkg-resources/0001-LICENSE-copy-from-setuptools.patch new file +39 -0
@@ -0,0 +1,39 @@ +From a5315eb2caffc9b4a43439df81e6a0d7f7647352 Mon Sep 17 00:00:00 2001 +From: Achill Gilgenast <[email protected]> +Date: Sun, 15 Feb 2026 15:58:35 +0100 +Subject: [PATCH] LICENSE: copy from setuptools + +Copy the same MIT license from setuptools, just like the rest of +pkg_resources that is compied from that repository. + +Upstream: https://github.com/pypa/pkg_resources/pull/20 +Signed-off-by: Achill Gilgenast <[email protected]> +Signed-off-by: James Hilliard <[email protected]> +--- + LICENSE | 17 +++++++++++++++++ + 1 file changed, 17 insertions(+) + create mode 100644 LICENSE + +diff --git a/LICENSE b/LICENSE +new file mode 100644 +index 0000000..1bb5a44 +--- /dev/null ++++ b/LICENSE +@@ -0,0 +1,17 @@ ++Permission is hereby granted, free of charge, to any person obtaining a copy ++of this software and associated documentation files (the "Software"), to ++deal in the Software without restriction, including without limitation the ++rights to use, copy, modify, merge, publish, distribute, sublicense, and/or ++sell copies of the Software, and to permit persons to whom the Software is ++furnished to do so, subject to the following conditions: ++ ++The above copyright notice and this permission notice shall be included in ++all copies or substantial portions of the Software. ++ ++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ++IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ++FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ++AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ++LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING ++FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS ++IN THE SOFTWARE.
package/python-pkg-resources/0002-Add-build-metadata-for-the-standalone-package.patch new file +39 -0
@@ -0,0 +1,39 @@ +From: James Hilliard <[email protected]> +Date: Tue, 13 Oct 2026 16:36:30 -0600 +Subject: [PATCH] Add build metadata for the standalone package + +Build the extracted pkg_resources module as a standalone wheel, mapping +the package to the repository root. Use a static version for this snapshot +so building an archive does not need setuptools-scm or Git metadata. + +Upstream: Not applicable [Buildroot snapshot metadata] +Signed-off-by: James Hilliard <[email protected]> +--- + pyproject.toml | 19 +++++++++++++++++++ + 1 file changed, 19 insertions(+) + create mode 100644 pyproject.toml + +diff --git a/pyproject.toml b/pyproject.toml +new file mode 100644 +--- /dev/null ++++ b/pyproject.toml +@@ -0,0 +1,19 @@ ++[build-system] ++requires = ["setuptools>=77"] ++build-backend = "setuptools.build_meta" ++ ++[project] ++name = "pkg_resources" ++version = "0.0.0+git.7fa76c17" ++requires-python = ">=3.9" ++license = "MIT" ++license-files = ["LICENSE"] ++dependencies = [ ++ "packaging>=24.2", ++ "jaraco.text>=3.7", ++ "platformdirs>=4.2.2", ++] ++ ++[tool.setuptools] ++packages = ["pkg_resources"] ++package-dir = {pkg_resources = "."}
package/python-pkg-resources/python-pkg-resources.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally computed +sha256 5fc3f3fd8e23438a83d366897ce4389d2983d977b4339303359a0ffa0a33c15e python-pkg-resources-7fa76c17eacf8a67c6932c9c2dd97861f42439cf.tar.gz +sha256 86da0f01aeae46348a3c3d465195dc1ceccde79f79e87769a64b8da04b2a4741 LICENSE
package/python-pkg-resources/python-pkg-resources.mk new file +17 -0
@@ -0,0 +1,17 @@ +################################################################################ +# +# python-pkg-resources +# +################################################################################ + +PYTHON_PKG_RESOURCES_VERSION = 7fa76c17eacf8a67c6932c9c2dd97861f42439cf +PYTHON_PKG_RESOURCES_SITE = $(call github,pypa,pkg_resources,$(PYTHON_PKG_RESOURCES_VERSION)) +PYTHON_PKG_RESOURCES_SETUP_TYPE = setuptools +PYTHON_PKG_RESOURCES_LICENSE = MIT +PYTHON_PKG_RESOURCES_LICENSE_FILES = LICENSE +HOST_PYTHON_PKG_RESOURCES_DEPENDENCIES = \ + host-python-jaraco-text \ + host-python-packaging \ + host-python-platformdirs + +$(eval $(host-python-package))
support/testing/tests/package/test_python_pkg_resources.py new file +14 -0
@@ -0,0 +1,14 @@ +import infra.basetest + + +class TestHostPythonPkgResources(infra.basetest.BRHostPkgTest): + hostpkgs = ["host-python-pkg-resources"] + + def test_run(self): + cmd = ["host/bin/python3", "-I", "-c", + "import pkg_resources; " + "assert '__init__.py' in pkg_resources.resource_listdir('pkg_resources', ''); " + "assert pkg_resources.resource_string('pkg_resources', '__init__.py'); " + "assert pkg_resources.require('pkg_resources'); " + "assert pkg_resources.get_default_cache()"] + infra.run_cmd_on_host(self.builddir, cmd)
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 9/9 boot/uboot: add host-python-pkg-resources dependency
In reply to James HilliardU-Boot configurations selecting BR2_TARGET_UBOOT_NEEDS_PYTHON3 already depend on host-python-setuptools, which provided pkg_resources before its removal in setuptools 82.
Add the standalone host package under the same condition to preserve pkg_resources availability for older U-Boot releases and vendor trees, including versions whose Binman still imports it.
---
Changes v1 -> v2:
- Tie host-python-pkg-resources to BR2_TARGET_UBOOT_NEEDS_PYTHON3 instead of BR2_TARGET_UBOOT_USE_BINMAN.
--- boot/uboot/uboot.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
boot/uboot/uboot.mk +4 -1
@@ -268,7 +268,10 @@ UBOOT_MAKE_OPTS += DTC=$(HOST_DIR)/bin/dtc endif ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYTHON3),y) -UBOOT_DEPENDENCIES += host-python3 host-python-setuptools +UBOOT_DEPENDENCIES += \ + host-python3 \ + host-python-pkg-resources \ + host-python-setuptools endif ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYLIBFDT),y)
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2 9/9] boot/uboot: add host-python-pkg-resources dependency
Am 15.10.26 um 21:32 schrieb James Hilliard:
Quoted 7 lines
U-Boot configurations selecting
BR2_TARGET_UBOOT_NEEDS_PYTHON3already depend on host-python-setuptools, which providedpkg_resourcesbefore its removal in setuptools 82.Add the standalone host package under the same condition to preserve
pkg_resourcesavailability for older U-Boot releases and vendor trees, including versions whose Binman still imports it.
I'd still like a separate option. We need pkg_resources as a "least bad" solution so old U-Boot versions build without Buildroot getting stuck on old setuptools, but otherwise it should not be used at all. I know that means defconfigs will break until updated to use that option (or hopefully a current U-Boot version), but that seems better to me than dragging it into every U-Boot build that uses Python.
Best regards,
Fiona
Quoted 16 lines
Signed-off-by James Hilliard <[email protected]>---
Changes v1 -> v2:
- Tie host-python-pkg-resources toBR2_TARGET_UBOOT_NEEDS_PYTHON3instead ofBR2_TARGET_UBOOT_USE_BINMAN.--- boot/uboot/uboot.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)boot/uboot/uboot.mk +0
-0@@ -268,7 +268,10 @@ UBOOT_MAKE_OPTS += DTC=$(HOST_DIR)/bin/dtc endif
boot/uboot/uboot.mk UBOOT_MAKE_OPTS += DTC=$(HOST_DIR)/bin/dtc · line 277
Quoted 10 lines
boot/uboot/uboot.mk +4
-1ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYTHON3),y) -UBOOT_DEPENDENCIES += host-python3 host-python-setuptools +UBOOT_DEPENDENCIES += \ + host-python3 \ + host-python-pkg-resources \ + host-python-setuptools endif ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYLIBFDT),y)
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2 9/9] boot/uboot: add host-python-pkg-resources dependency
Quoted 10 lines · Fiona Klute
Am 15.10.26 um 21:32 schrieb James Hilliard:
Quoted 7 lines
U-Boot configurations selecting
BR2_TARGET_UBOOT_NEEDS_PYTHON3already depend on host-python-setuptools, which providedpkg_resourcesbefore its removal in setuptools 82.Add the standalone host package under the same condition to preserve
pkg_resourcesavailability for older U-Boot releases and vendor trees, including versions whose Binman still imports it.
Quoted 6 lines
I'd still like a separate option. We need
pkg_resourcesas a "least bad" solution so old U-Boot versions build without Buildroot getting stuck on old setuptools, but otherwise it should not be used at all. I know that means defconfigs will break until updated to use that option (or hopefully a current U-Boot version), but that seems better to me than dragging it into every U-Boot build that uses Python.
Yeah, I'm thinking it probably makes more sense to split it out as a separate follow up however.
Quoted 29 lines
Best regards,
FionaQuoted 25 lines
Signed-off-by James Hilliard <[email protected]>---
Changes v1 -> v2:
- Tie host-python-pkg-resources toBR2_TARGET_UBOOT_NEEDS_PYTHON3instead ofBR2_TARGET_UBOOT_USE_BINMAN.--- boot/uboot/uboot.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)boot/uboot/uboot.mk +4
-1@@ -268,7 +268,10 @@ UBOOT_MAKE_OPTS += DTC=$(HOST_DIR)/bin/dtc endif ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYTHON3),y) -UBOOT_DEPENDENCIES += host-python3 host-python-setuptools +UBOOT_DEPENDENCIES += \ + host-python3 \ + host-python-pkg-resources \ + host-python-setuptools endif
Quoted 1 line
boot/uboot/uboot.mk UBOOT_MAKE_OPTS += DTC=$(HOST_DIR)/bin/dtc · line 277
Quoted 1 line
boot/uboot/uboot.mk +0
-0ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYLIBFDT),y)
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2 9/9] boot/uboot: add host-python-pkg-resources dependency
Am 15.10.26 um 22:26 schrieb James Hilliard:
Quoted 18 lines · Fiona Klute
Quoted 10 lines
Am 15.10.26 um 21:32 schrieb James Hilliard:
Quoted 7 lines
U-Boot configurations selecting
BR2_TARGET_UBOOT_NEEDS_PYTHON3already depend on host-python-setuptools, which providedpkg_resourcesbefore its removal in setuptools 82.Add the standalone host package under the same condition to preserve
pkg_resourcesavailability for older U-Boot releases and vendor trees, including versions whose Binman still imports it.Quoted 6 lines
I'd still like a separate option. We need
pkg_resourcesas a "least bad" solution so old U-Boot versions build without Buildroot getting stuck on old setuptools, but otherwise it should not be used at all. I know that means defconfigs will break until updated to use that option (or hopefully a current U-Boot version), but that seems better to me than dragging it into every U-Boot build that uses Python.
Quoted 2 lines
Yeah, I'm thinking it probably makes more sense to split it out as a separate follow up however.
That works for me, too.
We could also add an option with "default y" and warn defconfig developers that it will be flipped to default off at a certain time.
Best regards,
Fiona
Quoted 29 lines
Quoted 29 lines
Best regards,
FionaQuoted 25 lines
Signed-off-by James Hilliard <[email protected]>---
Changes v1 -> v2:
- Tie host-python-pkg-resources toBR2_TARGET_UBOOT_NEEDS_PYTHON3instead ofBR2_TARGET_UBOOT_USE_BINMAN.--- boot/uboot/uboot.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)boot/uboot/uboot.mk +4
-1@@ -268,7 +268,10 @@ UBOOT_MAKE_OPTS += DTC=$(HOST_DIR)/bin/dtc endif ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYTHON3),y) -UBOOT_DEPENDENCIES += host-python3 host-python-setuptools +UBOOT_DEPENDENCIES += \ + host-python3 \ + host-python-pkg-resources \ + host-python-setuptools endif
Quoted 1 line
Quoted 1 line
boot/uboot/uboot.mk UBOOT_MAKE_OPTS += DTC=$(HOST_DIR)/bin/dtc · line 277
Quoted 1 line
boot/uboot/uboot.mk +0
-0ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYLIBFDT),y)
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2 9/9] boot/uboot: add host-python-pkg-resources dependency
In reply to James HilliardAm 15.10.26 um 21:32 schrieb James Hilliard:
Quoted 8 lines
U-Boot configurations selecting
BR2_TARGET_UBOOT_NEEDS_PYTHON3already depend on host-python-setuptools, which providedpkg_resourcesbefore its removal in setuptools 82.Add the standalone host package under the same condition to preserve
pkg_resourcesavailability for older U-Boot releases and vendor trees, including versions whose Binman still imports it.
Quoted 6 lines
Signed-off-by James Hilliard <[email protected]>---
Changes v1 -> v2:
- Tie host-python-pkg-resources toBR2_TARGET_UBOOT_NEEDS_PYTHON3instead ofBR2_TARGET_UBOOT_USE_BINMAN.
One thing I forgot to ask before: Why did you change this? AFAIK binman is the only U-Boot component that might need pkg_resources, and the dependency should be as narrow as possible.
Best regards,
Fiona
Quoted 10 lines
--- boot/uboot/uboot.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)boot/uboot/uboot.mk +0
-0@@ -268,7 +268,10 @@ UBOOT_MAKE_OPTS += DTC=$(HOST_DIR)/bin/dtc endif
boot/uboot/uboot.mk UBOOT_MAKE_OPTS += DTC=$(HOST_DIR)/bin/dtc · line 277
Quoted 10 lines
boot/uboot/uboot.mk +4
-1ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYTHON3),y) -UBOOT_DEPENDENCIES += host-python3 host-python-setuptools +UBOOT_DEPENDENCIES += \ + host-python3 \ + host-python-pkg-resources \ + host-python-setuptools endif ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYLIBFDT),y)
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2 9/9] boot/uboot: add host-python-pkg-resources dependency
Quoted 12 lines · Fiona Klute
Am 15.10.26 um 21:32 schrieb James Hilliard:
Quoted 10 lines
U-Boot configurations selecting
BR2_TARGET_UBOOT_NEEDS_PYTHON3already depend on host-python-setuptools, which providedpkg_resourcesbefore its removal in setuptools 82.Add the standalone host package under the same condition to preserve
pkg_resourcesavailability for older U-Boot releases and vendor trees, including versions whose Binman still imports it.Signed-off-by James Hilliard <[email protected]>
Quoted 8 lines
Quoted 4 lines
---
Changes v1 -> v2:
- Tie host-python-pkg-resources toBR2_TARGET_UBOOT_NEEDS_PYTHON3instead ofBR2_TARGET_UBOOT_USE_BINMAN.One thing I forgot to ask before: Why did you change this? AFAIK binman is the only U-Boot component that might need
pkg_resources, and the dependency should be as narrow as possible.
Ah, I think I had done that because that's what setuptools was tied with, I'll respin with it using BR2_TARGET_UBOOT_USE_BINMAN again.
Quoted 23 lines
Best regards,
FionaQuoted 19 lines
--- boot/uboot/uboot.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)boot/uboot/uboot.mk +4
-1@@ -268,7 +268,10 @@ UBOOT_MAKE_OPTS += DTC=$(HOST_DIR)/bin/dtc endif ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYTHON3),y) -UBOOT_DEPENDENCIES += host-python3 host-python-setuptools +UBOOT_DEPENDENCIES += \ + host-python3 \ + host-python-pkg-resources \ + host-python-setuptools endif
Quoted 1 line
boot/uboot/uboot.mk UBOOT_MAKE_OPTS += DTC=$(HOST_DIR)/bin/dtc · line 277
Quoted 1 line
boot/uboot/uboot.mk +0
-0ifeq ($(BR2_TARGET_UBOOT_NEEDS_PYLIBFDT),y)
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 5 lines · James Hilliard
Signed-off-by James Hilliard <[email protected]>--- package/python-setuptools/python-setuptools.hash | 4 ++-- package/python-setuptools/python-setuptools.mk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
Thanks for your work on this topic! Shouldn't this patch come last in the series? Indeed, if you bump setuptools, you break the U-Boot build, and the whole reason of the series is to figure out a solution to this problem before bumping setuptools, no?
Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 8 lines · Thomas Petazzoni
Quoted 5 lines · James Hilliard
Signed-off-by James Hilliard <[email protected]>--- package/python-setuptools/python-setuptools.hash | 4 ++-- package/python-setuptools/python-setuptools.mk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
Quoted 4 lines
Thanks for your work on this topic! Shouldn't this patch come last in the series? Indeed, if you bump setuptools, you break the U-Boot build, and the whole reason of the series is to figure out a solution to this problem before bumping setuptools, no?
So I did it this way intentionally because older setuptools bundles pkg_resources and I didn't want to have a potential situation where we essentially have two different buildroot package installing code that has the same pkg_resources namespace.
Quoted 8 lines
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Am 15.10.26 um 21:58 schrieb James Hilliard:
Quoted 15 lines
Quoted 8 lines · Thomas Petazzoni
Quoted 5 lines · James Hilliard
Signed-off-by James Hilliard <[email protected]>--- package/python-setuptools/python-setuptools.hash | 4 ++-- package/python-setuptools/python-setuptools.mk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)Quoted 4 lines
Thanks for your work on this topic! Shouldn't this patch come last in the series? Indeed, if you bump setuptools, you break the U-Boot build, and the whole reason of the series is to figure out a solution to this problem before bumping setuptools, no?
Quoted 4 lines
So I did it this way intentionally because older setuptools bundles
pkg_resourcesand I didn't want to have a potential situation where we essentially have two different buildroot package installing code that has the samepkg_resourcesnamespace.
That seems reasonable to me, the only thing that is expected to break are builds with old U-Boot (some defconfigs). Probably less of a risk for bisect than possibly breaking setuptools because files got overwritten.
Of course, host-python-pkg-resources won't actually be built until U-Boot depends on it (unless someone builds it manually), so theoretically we could put the setuptools bump between adding pkg_resources and adding the U-Boot dependency, but we wouldn't really gain anything from that. Unless you'd rather squash the setuptools bump and U-Boot dependency on host-python-pkg-resources?
It might make sense to move the setuptools update right before the pkg_resources addition though (but that's easy to do while merging). Or we could just merge all the "add host variant" patches already to get them out of the way. ;-)
Best regards,
Fiona
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 25 lines · Fiona Klute
Am 15.10.26 um 21:58 schrieb James Hilliard:
Quoted 15 lines
Quoted 8 lines · Thomas Petazzoni
Quoted 5 lines · James Hilliard
Signed-off-by James Hilliard <[email protected]>--- package/python-setuptools/python-setuptools.hash | 4 ++-- package/python-setuptools/python-setuptools.mk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)Quoted 4 lines
Thanks for your work on this topic! Shouldn't this patch come last in the series? Indeed, if you bump setuptools, you break the U-Boot build, and the whole reason of the series is to figure out a solution to this problem before bumping setuptools, no?
Quoted 4 lines
So I did it this way intentionally because older setuptools bundles
pkg_resourcesand I didn't want to have a potential situation where we essentially have two different buildroot package installing code that has the samepkg_resourcesnamespace.That seems reasonable to me, the only thing that is expected to break are builds with old U-Boot (some defconfigs). Probably less of a risk for bisect than possibly breaking setuptools because files got overwritten.
Quoted 6 lines
Of course, host-python-pkg-resources won't actually be built until U-Boot depends on it (unless someone builds it manually), so theoretically we could put the setuptools bump between adding
pkg_resourcesand adding the U-Boot dependency, but we wouldn't really gain anything from that. Unless you'd rather squash the setuptools bump and U-Boot dependency on host-python-pkg-resources?
I think it's fine to separate it out. Not a big deal either way.
Quoted 4 lines
It might make sense to move the setuptools update right before the
pkg_resourcesaddition though (but that's easy to do while merging). Or we could just merge all the "add host variant" patches already to get them out of the way. ;-)
Doesn't really matter much to me, either approach should be fine.
Quoted 4 lines
Best regards,
Fiona
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot