package/python-setuptools: bump to version 84.0.0
PATCH 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 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 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 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 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 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 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 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 9/9 boot/uboot: add host-python-pkg-resources dependency for binman
In reply to James HilliardBinman in older U-Boot versions imports pkg_resources to find entry modules and read the missing-blob help text. Setuptools 82 no longer provides this module.
Depend on the standalone host package when Binman is enabled, so older U-Boot releases and vendor trees continue to work after setuptools is updated.
--- boot/uboot/uboot.mk | 1 + 1 file changed, 1 insertion(+)
boot/uboot/uboot.mk +1 -0
@@ -304,6 +304,7 @@ ifeq ($(BR2_TARGET_UBOOT_USE_BINMAN),y) # https://source.denx.de/u-boot/u-boot/-/blob/v2024.04/tools/buildman/requirements.txt UBOOT_DEPENDENCIES += \ host-python-jsonschema \ + host-python-pkg-resources \ host-python-pyyaml \ host-python-yamllint UBOOT_MAKE_OPTS += BINMAN_INDIRS=$(BINARIES_DIR)
Signature · 6 lines
2.53.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 9/9] boot/uboot: add host-python-pkg-resources dependency for binman
Hi James,
thank you for looking at this problem!
Am 14.10.26 um 01:29 schrieb James Hilliard:
Quoted 7 lines
Binman in older U-Boot versions imports
pkg_resourcesto find entry modules and read the missing-blob help text. Setuptools 82 no longer provides this module.Depend on the standalone host package when Binman is enabled, so older U-Boot releases and vendor trees continue to work after setuptools is updated.
I'd rather have this optional (like the existing BR2_TARGET_UBOOT_NEEDS_* options, unless you can find a simple way to make it conditional on U-Boot version < 2025.10). Sure, with a config option defconfigs with old U-Boot would have to be fixed, but otherwise recent U-Boot versions have to pull in pkg_resources and its dependencies even though they don't need it (if using binman).
Best regards,
Fiona
Quoted 10 lines
Signed-off-by James Hilliard <[email protected]>--- boot/uboot/uboot.mk | 1 + 1 file changed, 1 insertion(+)boot/uboot/uboot.mk +0
-0
boot/uboot/uboot.mk ifeq ($(BR2_TARGET_UBOOT_USE_BINMAN),y) · line 310
Quoted 7 lines
boot/uboot/uboot.mk +1
-0@@ -304,6 +304,7 @@ ifeq ($(BR2_TARGET_UBOOT_USE_BINMAN),y) # https://source.denx.de/u-boot/u-boot/-/blob/v2024.04/tools/buildman/requirements.txt UBOOT_DEPENDENCIES += \ host-python-jsonschema \ + host-python-pkg-resources \ host-python-pyyaml \ host-python-yamllint UBOOT_MAKE_OPTS += BINMAN_INDIRS=$(BINARIES_DIR)
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 9/9] boot/uboot: add host-python-pkg-resources dependency for binman
Quoted 14 lines · Fiona Klute
Hi James,
thank you for looking at this problem!
Am 14.10.26 um 01:29 schrieb James Hilliard:
Quoted 7 lines
Binman in older U-Boot versions imports
pkg_resourcesto find entry modules and read the missing-blob help text. Setuptools 82 no longer provides this module.Depend on the standalone host package when Binman is enabled, so older U-Boot releases and vendor trees continue to work after setuptools is updated.
Quoted 6 lines
I'd rather have this optional (like the existing BR2_TARGET_UBOOT_NEEDS_* options, unless you can find a simple way to make it conditional on U-Boot version < 2025.10). Sure, with a config option defconfigs with old U-Boot would have to be fixed, but otherwise recent U-Boot versions have to pull in
pkg_resourcesand its dependencies even though they don't need it (if using binman).
Hmm, I'm thinking this should maybe just go under:BR2_TARGET_UBOOT_NEEDS_PYTHON3
It's a host tool anyways so pulling in a few unnecessary dependencies probably isn't a big deal, especially for python package dependencies like this which are relatively lightweight.
Quoted 9 lines
Best regards,
FionaQuoted 5 lines
Signed-off-by James Hilliard <[email protected]>--- boot/uboot/uboot.mk | 1 + 1 file changed, 1 insertion(+)
Quoted 12 lines
boot/uboot/uboot.mk ifeq ($(BR2_TARGET_UBOOT_USE_BINMAN),y) · line 310
Quoted 12 lines
boot/uboot/uboot.mk +1
-0@@ -304,6 +304,7 @@ ifeq ($(BR2_TARGET_UBOOT_USE_BINMAN),y) # https://source.denx.de/u-boot/u-boot/-/blob/v2024.04/tools/buildman/requirements.txt UBOOT_DEPENDENCIES += \ host-python-jsonschema \ + host-python-pkg-resources \ host-python-pyyaml \ host-python-yamllint UBOOT_MAKE_OPTS += BINMAN_INDIRS=$(BINARIES_DIR)
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot