Skip to contentSkip to conversation

package/python-setuptools: bump to version 84.2.1

PATCH Applied James Hilliard 2 participants 20 messages Oct 21 – Nov 6

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/16 package/python-setuptools: bump to version 84.2.1

---
Changes v2 -> v3:
- Bump to version 84.2.1.

---
 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
index d0ed270e9c..16b4cf7bb6 100644
@@ -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  251cbfc8f83414155e0e595cc4cffdd2  setuptools-84.2.1.tar.gz
+sha256  3ff8b3b5492a0aa66960f4419365a86b84e013070d4313e4d4a6894f5d64d6bc  setuptools-84.2.1.tar.gz
 # Locally computed sha256 checksums
 sha256  86da0f01aeae46348a3c3d465195dc1ceccde79f79e87769a64b8da04b2a4741  LICENSE
package/python-setuptools/python-setuptools.mk +2 -2
index e013000c57..a74db0e592 100644
@@ -4,9 +4,9 @@
 #
 ################################################################################
 
-PYTHON_SETUPTOOLS_VERSION = 80.9.0
+PYTHON_SETUPTOOLS_VERSION = 84.2.1
 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/70/b3/c19426f783614d625699a4b247faf628ea9ab1db228674491767b417f9e1
 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
#1 lore raw

PATCH v3 2/16 package/python-more-itertools: add host variant

Enable 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
index fa3d859905..6fe90f84ac 100644
@@ -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
#2 lore raw

PATCH v3 3/16 package/python-jaraco-context: add host variant

In reply to James Hilliard

Enable 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
index f812cec8f1..dff0d21910 100644
@@ -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
#3 lore raw

PATCH v3 4/16 package/python-jaraco-functools: add host variant

In reply to James Hilliard

Enable 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
index 2e144f0191..62f9e1945e 100644
@@ -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
#4 lore raw

PATCH v3 5/16 package/python-mdurl: add host variant

In reply to James Hilliard

Enable a host variant for host-python-markdown-it-py, needed by the Typer dependency of host-python-jaraco-text.

---
 package/python-mdurl/python-mdurl.mk | 1 +
 1 file changed, 1 insertion(+)
package/python-mdurl/python-mdurl.mk +1 -0
index c6ed397438..7d4c0e993b 100644
@@ -12,3 +12,4 @@ PYTHON_MDURL_LICENSE = MIT
 PYTHON_MDURL_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
#5 lore raw

PATCH v3 6/16 package/python-markdown-it-py: add host variant

In reply to James Hilliard

Enable a host variant for host-python-rich and include its mdurl runtime dependency.

---
 package/python-markdown-it-py/python-markdown-it-py.mk | 2 ++
 1 file changed, 2 insertions(+)
package/python-markdown-it-py/python-markdown-it-py.mk +2 -0
index 35ea875ab3..b5dc1bd5d9 100644
@@ -10,5 +10,7 @@ PYTHON_MARKDOWN_IT_PY_SITE = https://files.pythonhosted.org/packages/06/ff/78412
 PYTHON_MARKDOWN_IT_PY_SETUP_TYPE = flit
 PYTHON_MARKDOWN_IT_PY_LICENSE = MIT
 PYTHON_MARKDOWN_IT_PY_LICENSE_FILES = LICENSE LICENSE.markdown-it
+HOST_PYTHON_MARKDOWN_IT_PY_DEPENDENCIES = host-python-mdurl
 
 $(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
#6 lore raw

PATCH v3 7/16 package/python-pygments: add host variant

In reply to James Hilliard

Enable a host variant for host-python-rich, needed by the Typer dependency of host-python-jaraco-text.

---
 package/python-pygments/python-pygments.mk | 1 +
 1 file changed, 1 insertion(+)
package/python-pygments/python-pygments.mk +1 -0
index 1b14b56d8c..eb7d696f5e 100644
@@ -14,3 +14,4 @@ PYTHON_PYGMENTS_CPE_ID_PRODUCT = pygments
 PYTHON_PYGMENTS_SETUP_TYPE = hatch
 
 $(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
#7 lore raw

PATCH v3 8/16 package/python-rich: add host variant

In reply to James Hilliard

Enable a host variant for host-python-typer and include its markdown-it-py and pygments runtime dependencies.

---
 package/python-rich/python-rich.mk | 2 ++
 1 file changed, 2 insertions(+)
package/python-rich/python-rich.mk +2 -0
index cb98d0ff3e..61582a55e8 100644
@@ -10,5 +10,7 @@ PYTHON_RICH_SITE = https://files.pythonhosted.org/packages/c0/8f/0722ca900cc807c
 PYTHON_RICH_SETUP_TYPE = poetry
 PYTHON_RICH_LICENSE = MIT
 PYTHON_RICH_LICENSE_FILES = LICENSE
+HOST_PYTHON_RICH_DEPENDENCIES = host-python-markdown-it-py host-python-pygments
 
 $(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
#8 lore raw

PATCH v3 9/16 package/python-annotated-doc: add host variant

In reply to James Hilliard

Enable a host variant for host-python-typer and carry over the pdm-backend build dependency.

---
 package/python-annotated-doc/python-annotated-doc.mk | 2 ++
 1 file changed, 2 insertions(+)
package/python-annotated-doc/python-annotated-doc.mk +2 -0
index 6671db2f1a..192814a9cf 100644
@@ -11,5 +11,7 @@ PYTHON_ANNOTATED_DOC_SETUP_TYPE = pep517
 PYTHON_ANNOTATED_DOC_LICENSE = MIT
 PYTHON_ANNOTATED_DOC_LICENSE_FILES = LICENSE
 PYTHON_ANNOTATED_DOC_DEPENDENCIES = host-python-pdm-backend
+HOST_PYTHON_ANNOTATED_DOC_DEPENDENCIES = host-python-pdm-backend
 
 $(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
#9 lore raw

PATCH v3 10/16 package/python-shellingham: add host variant

In reply to James Hilliard

Enable a host variant for host-python-typer, needed by the typer-slim dependency of host-python-jaraco-text.

---
 package/python-shellingham/python-shellingham.mk | 1 +
 1 file changed, 1 insertion(+)
package/python-shellingham/python-shellingham.mk +1 -0
index 7e07606714..7253774dc3 100644
@@ -12,3 +12,4 @@ PYTHON_SHELLINGHAM_LICENSE = ISC
 PYTHON_SHELLINGHAM_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
#10 lore raw

PATCH v3 11/16 package/python-typer: add host variant

In reply to James Hilliard

Enable a host variant for host-python-typer-slim. Include its runtime dependencies and the pdm-backend build dependency.

---
 package/python-typer/python-typer.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/python-typer/python-typer.mk +6 -0
index ca0d1c6ee7..f9f9af59e8 100644
@@ -11,5 +11,11 @@ PYTHON_TYPER_SETUP_TYPE = pep517
 PYTHON_TYPER_LICENSE = MIT, BSD-3-Clause (vendored click)
 PYTHON_TYPER_LICENSE_FILES = LICENSE typer/_click/LICENSE.txt
 PYTHON_TYPER_DEPENDENCIES = host-python-pdm-backend
+HOST_PYTHON_TYPER_DEPENDENCIES = \
+	host-python-annotated-doc \
+	host-python-pdm-backend \
+	host-python-rich \
+	host-python-shellingham
 
 $(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
#11 lore raw

PATCH v3 12/16 package/python-typer-slim: add host variant

In reply to James Hilliard

Enable a host variant for host-python-jaraco-text, which now uses Typer instead of autocommand. Include the typer runtime dependency and the pdm-backend build dependency.

---
 package/python-typer-slim/python-typer-slim.mk | 2 ++
 1 file changed, 2 insertions(+)
package/python-typer-slim/python-typer-slim.mk +2 -0
index 0be49b20e8..e6114b09bf 100644
@@ -11,5 +11,7 @@ PYTHON_TYPER_SLIM_SETUP_TYPE = pep517
 PYTHON_TYPER_SLIM_LICENSE = MIT
 PYTHON_TYPER_SLIM_LICENSE_FILES = LICENSE
 PYTHON_TYPER_SLIM_DEPENDENCIES = host-python-pdm-backend
+HOST_PYTHON_TYPER_SLIM_DEPENDENCIES = host-python-pdm-backend host-python-typer
 
 $(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
#12 lore raw

PATCH v3 13/16 package/python-jaraco-text: add host variant

In reply to James Hilliard

Enable a host variant for the standalone pkg_resources package. Include its runtime dependencies as well as coherent-licensed and setuptools-scm, which are needed to build the package.

---
Changes v2 -> v3:
- Add host-python-coherent-licensed and replace host-python-autocommand with host-python-typer-slim to match jaraco.text 4.3.0 dependencies.

---
 package/python-jaraco-text/python-jaraco-text.mk | 8 ++++++++
 1 file changed, 8 insertions(+)
package/python-jaraco-text/python-jaraco-text.mk +8 -0
index e0868bc575..eaca4703f8 100644
@@ -11,5 +11,13 @@ PYTHON_JARACO_TEXT_SETUP_TYPE = setuptools
 PYTHON_JARACO_TEXT_LICENSE = MIT
 PYTHON_JARACO_TEXT_LICENSE_FILES = LICENSE
 PYTHON_JARACO_TEXT_DEPENDENCIES = host-python-coherent-licensed host-python-setuptools-scm
+HOST_PYTHON_JARACO_TEXT_DEPENDENCIES = \
+	host-python-coherent-licensed \
+	host-python-jaraco-context \
+	host-python-jaraco-functools \
+	host-python-more-itertools \
+	host-python-setuptools-scm \
+	host-python-typer-slim
 
 $(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
#13 lore raw

PATCH v3 14/16 package/python-platformdirs: add host variant

In reply to James Hilliard

Enable 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
index 55aae1e1af..0aebffb6a9 100644
@@ -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
#14 lore raw

Re: [Buildroot] [PATCH v3 14/16] package/python-platformdirs: add host variant

In reply of:

Quoted 4 lines

Enable a host variant for the standalone pkg_resources package and include the hatch-vcs build dependency.

Applied to 2026.08.x. Thanks

Quoted 9 lines
---
 package/python-platformdirs/python-platformdirs.mk | 2 ++
 1 file changed, 2 insertions(+)
package/python-platformdirs/python-platformdirs.mk +0 -0
index 55aae1e1af..0aebffb6a9 100644

package/python-platformdirs/python-platformdirs.mk PYTHON_PLATFORMDIRS_SETUP_TYPE = hatch · line 17

Quoted 7 lines
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))

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#15 lore raw

PATCH v3 15/16 package/python-pkg-resources: new host package

In reply to James Hilliard

Setuptools 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
new file mode 100644
index 0000000000..3ecd63fc8c
@@ -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
new file mode 100644
index 0000000000..e9982cd1a0
@@ -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
new file mode 100644
index 0000000000..e80a20de6f
@@ -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
new file mode 100644
index 0000000000..35076514f4
@@ -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
new file mode 100644
index 0000000000..72acde3dcd
@@ -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
#16 lore raw

Re: [Buildroot] [PATCH v3 15/16] package/python-pkg-resources: new host package

In reply of:

Quoted 9 lines

Setuptools 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.

Quoted 4 lines

Add a host runtime test covering resource access, dependency resolution and cache lookup.

Applied to 2026.08.x. Thanks

Quoted 145 lines
---
 .../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
new file mode 100644
index 0000000000..3ecd63fc8c
@@ -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
new file mode 100644
index 0000000000..e9982cd1a0
@@ -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
new file mode 100644
index 0000000000..e80a20de6f
@@ -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
new file mode 100644
index 0000000000..35076514f4
@@ -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 +4 -0
new file mode 100644
index 0000000000..72acde3dcd
@@ -0,0 +1,14 @@
+import infra.basetest
+
+
+class TestHostPythonPkgResources(infra.basetest.BRHostPkgTest):

support/testing/tests/package/test_python_pkg_resources.py line 14

Quoted 10 lines
support/testing/tests/package/test_python_pkg_resources.py new file +10 -0
+    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)

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#17 lore raw

PATCH v3 16/16 boot/uboot: add host-python-pkg-resources dependency

In reply to James Hilliard

Older U-Boot Binman versions import pkg_resources, which was removed from setuptools in version 82. Add the standalone host package when BR2_TARGET_UBOOT_USE_BINMAN is enabled to preserve support for these versions and vendor trees.

---
Changes v2 -> v3:
- Restrict host-python-pkg-resources to BR2_TARGET_UBOOT_USE_BINMAN.

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 | 1 +
 1 file changed, 1 insertion(+)
boot/uboot/uboot.mk +1 -0
index 99330a2f15..a7e831f6c3 100644
@@ -312,6 +312,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
#18 lore raw

Re: [Buildroot] [PATCH v3 16/16] boot/uboot: add host-python-pkg-resources dependency

In reply of:

Quoted 6 lines

Older U-Boot Binman versions import pkg_resources, which was removed from setuptools in version 82. Add the standalone host package when BR2_TARGET_UBOOT_USE_BINMAN is enabled to preserve support for these versions and vendor trees.

Applied to 2026.08.x. Thanks

Quoted 16 lines

---
Changes v2 -> v3:
- Restrict host-python-pkg-resources to BR2_TARGET_UBOOT_USE_BINMAN.

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 | 1 +
 1 file changed, 1 insertion(+)
boot/uboot/uboot.mk +0 -0
index 99330a2f15..a7e831f6c3 100644

boot/uboot/uboot.mk ifeq ($(BR2_TARGET_UBOOT_USE_BINMAN),y) · line 318

Quoted 7 lines
boot/uboot/uboot.mk +1 -0
@@ -312,6 +312,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

#19 lore raw
In reply to James Hilliard

Am 21.10.26 um 22:33 schrieb James Hilliard:

Quoted 1 line

Series applied to master, thank you. I'm going to send a follow-up to make the dependency in U-Boot optional.

Best regards,
Fiona

Quoted 26 lines

---
Changes v2 -> v3:
- Bump to version 84.2.1.

---
  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
index d0ed270e9c..16b4cf7bb6 100644
@@ -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  251cbfc8f83414155e0e595cc4cffdd2  setuptools-84.2.1.tar.gz
+sha256  3ff8b3b5492a0aa66960f4419365a86b84e013070d4313e4d4a6894f5d64d6bc  setuptools-84.2.1.tar.gz
  # Locally computed sha256 checksums
  sha256  86da0f01aeae46348a3c3d465195dc1ceccde79f79e87769a64b8da04b2a4741  LICENSE
package/python-setuptools/python-setuptools.mk +0 -0
index e013000c57..a74db0e592 100644
@@ -4,9 +4,9 @@
  #

package/python-setuptools/python-setuptools.mk line 12

Quoted 10 lines
package/python-setuptools/python-setuptools.mk +2 -2
  ################################################################################
 
-PYTHON_SETUPTOOLS_VERSION = 80.9.0
+PYTHON_SETUPTOOLS_VERSION = 84.2.1
  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/70/b3/c19426f783614d625699a4b247faf628ea9ab1db228674491767b417f9e1
  PYTHON_SETUPTOOLS_LICENSE = MIT
  PYTHON_SETUPTOOLS_LICENSE_FILES = LICENSE
  PYTHON_SETUPTOOLS_CPE_ID_VENDOR = python

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot