* [Buildroot] [PATCH v2 1/9] package/python-setuptools: bump to version 84.0.0
@ 2026-10-15 19:32 James Hilliard
2026-10-15 19:32 ` [Buildroot] [PATCH v2 2/9] package/python-autocommand: add host variant James Hilliard
` (8 more replies)
0 siblings, 9 replies; 13+ messages in thread
From: James Hilliard @ 2026-10-15 19:32 UTC (permalink / raw)
To: buildroot; +Cc: James Hilliard, Fiona Klute, Thomas Petazzoni
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
package/python-setuptools/python-setuptools.hash | 4 ++--
package/python-setuptools/python-setuptools.mk | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/package/python-setuptools/python-setuptools.hash b/package/python-setuptools/python-setuptools.hash
index d0ed270e9c..51e7fc67e4 100644
--- a/package/python-setuptools/python-setuptools.hash
+++ b/package/python-setuptools/python-setuptools.hash
@@ -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
diff --git a/package/python-setuptools/python-setuptools.mk b/package/python-setuptools/python-setuptools.mk
index e013000c57..5c5a41531c 100644
--- a/package/python-setuptools/python-setuptools.mk
+++ b/package/python-setuptools/python-setuptools.mk
@@ -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
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH v2 2/9] package/python-autocommand: add host variant
2026-10-15 19:32 [Buildroot] [PATCH v2 1/9] package/python-setuptools: bump to version 84.0.0 James Hilliard
@ 2026-10-15 19:32 ` James Hilliard
2026-10-15 19:32 ` [Buildroot] [PATCH v2 3/9] package/python-more-itertools: " James Hilliard
` (7 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: James Hilliard @ 2026-10-15 19:32 UTC (permalink / raw)
To: buildroot; +Cc: James Hilliard, Fiona Klute, Thomas Petazzoni
Enable a host variant for host-python-jaraco-text, which is needed by
the standalone pkg_resources package.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
package/python-autocommand/python-autocommand.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/python-autocommand/python-autocommand.mk b/package/python-autocommand/python-autocommand.mk
index 37b421e418..1eab76123d 100644
--- a/package/python-autocommand/python-autocommand.mk
+++ b/package/python-autocommand/python-autocommand.mk
@@ -12,3 +12,4 @@ PYTHON_AUTOCOMMAND_LICENSE = LGPL-3.0+
PYTHON_AUTOCOMMAND_LICENSE_FILES = LICENSE
$(eval $(python-package))
+$(eval $(host-python-package))
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH v2 3/9] package/python-more-itertools: add host variant
2026-10-15 19:32 [Buildroot] [PATCH v2 1/9] package/python-setuptools: bump to version 84.0.0 James Hilliard
2026-10-15 19:32 ` [Buildroot] [PATCH v2 2/9] package/python-autocommand: add host variant James Hilliard
@ 2026-10-15 19:32 ` James Hilliard
2026-10-15 19:32 ` [Buildroot] [PATCH v2 4/9] package/python-jaraco-context: " James Hilliard
` (6 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: James Hilliard @ 2026-10-15 19:32 UTC (permalink / raw)
To: buildroot; +Cc: James Hilliard, Fiona Klute, Thomas Petazzoni
Enable a host variant for host-python-jaraco-functools and
host-python-jaraco-text, which are needed by the standalone
pkg_resources package.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
package/python-more-itertools/python-more-itertools.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/python-more-itertools/python-more-itertools.mk b/package/python-more-itertools/python-more-itertools.mk
index fa3d859905..6fe90f84ac 100644
--- a/package/python-more-itertools/python-more-itertools.mk
+++ b/package/python-more-itertools/python-more-itertools.mk
@@ -12,3 +12,4 @@ PYTHON_MORE_ITERTOOLS_LICENSE = MIT
PYTHON_MORE_ITERTOOLS_LICENSE_FILES = LICENSE
$(eval $(python-package))
+$(eval $(host-python-package))
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH v2 4/9] package/python-jaraco-context: add host variant
2026-10-15 19:32 [Buildroot] [PATCH v2 1/9] package/python-setuptools: bump to version 84.0.0 James Hilliard
2026-10-15 19:32 ` [Buildroot] [PATCH v2 2/9] package/python-autocommand: add host variant James Hilliard
2026-10-15 19:32 ` [Buildroot] [PATCH v2 3/9] package/python-more-itertools: " James Hilliard
@ 2026-10-15 19:32 ` James Hilliard
2026-10-15 19:32 ` [Buildroot] [PATCH v2 5/9] package/python-jaraco-functools: " James Hilliard
` (5 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: James Hilliard @ 2026-10-15 19:32 UTC (permalink / raw)
To: buildroot; +Cc: James Hilliard, Fiona Klute, Thomas Petazzoni
Enable a host variant for host-python-jaraco-text and carry over its
build dependencies.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
package/python-jaraco-context/python-jaraco-context.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/python-jaraco-context/python-jaraco-context.mk b/package/python-jaraco-context/python-jaraco-context.mk
index f812cec8f1..dff0d21910 100644
--- a/package/python-jaraco-context/python-jaraco-context.mk
+++ b/package/python-jaraco-context/python-jaraco-context.mk
@@ -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))
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH v2 5/9] package/python-jaraco-functools: add host variant
2026-10-15 19:32 [Buildroot] [PATCH v2 1/9] package/python-setuptools: bump to version 84.0.0 James Hilliard
` (2 preceding siblings ...)
2026-10-15 19:32 ` [Buildroot] [PATCH v2 4/9] package/python-jaraco-context: " James Hilliard
@ 2026-10-15 19:32 ` James Hilliard
2026-10-15 19:32 ` [Buildroot] [PATCH v2 6/9] package/python-jaraco-text: " James Hilliard
` (4 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: James Hilliard @ 2026-10-15 19:32 UTC (permalink / raw)
To: buildroot; +Cc: James Hilliard, Fiona Klute, Thomas Petazzoni
Enable a host variant for host-python-jaraco-text. Include more-itertools
as a runtime dependency in addition to the build dependencies.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
package/python-jaraco-functools/python-jaraco-functools.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/python-jaraco-functools/python-jaraco-functools.mk b/package/python-jaraco-functools/python-jaraco-functools.mk
index 2e144f0191..62f9e1945e 100644
--- a/package/python-jaraco-functools/python-jaraco-functools.mk
+++ b/package/python-jaraco-functools/python-jaraco-functools.mk
@@ -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))
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH v2 6/9] package/python-jaraco-text: add host variant
2026-10-15 19:32 [Buildroot] [PATCH v2 1/9] package/python-setuptools: bump to version 84.0.0 James Hilliard
` (3 preceding siblings ...)
2026-10-15 19:32 ` [Buildroot] [PATCH v2 5/9] package/python-jaraco-functools: " James Hilliard
@ 2026-10-15 19:32 ` James Hilliard
2026-10-15 19:32 ` [Buildroot] [PATCH v2 7/9] package/python-platformdirs: " James Hilliard
` (3 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: James Hilliard @ 2026-10-15 19:32 UTC (permalink / raw)
To: buildroot; +Cc: James Hilliard, Fiona Klute, Thomas Petazzoni
Enable 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.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
package/python-jaraco-text/python-jaraco-text.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/package/python-jaraco-text/python-jaraco-text.mk b/package/python-jaraco-text/python-jaraco-text.mk
index 2d612196a6..75536c6e3f 100644
--- a/package/python-jaraco-text/python-jaraco-text.mk
+++ b/package/python-jaraco-text/python-jaraco-text.mk
@@ -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))
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH v2 7/9] package/python-platformdirs: add host variant
2026-10-15 19:32 [Buildroot] [PATCH v2 1/9] package/python-setuptools: bump to version 84.0.0 James Hilliard
` (4 preceding siblings ...)
2026-10-15 19:32 ` [Buildroot] [PATCH v2 6/9] package/python-jaraco-text: " James Hilliard
@ 2026-10-15 19:32 ` James Hilliard
2026-10-15 19:32 ` [Buildroot] [PATCH v2 8/9] package/python-pkg-resources: new host package James Hilliard
` (2 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: James Hilliard @ 2026-10-15 19:32 UTC (permalink / raw)
To: buildroot; +Cc: James Hilliard, Fiona Klute, Thomas Petazzoni
Enable a host variant for the standalone pkg_resources package and
include the hatch-vcs build dependency.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
package/python-platformdirs/python-platformdirs.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/python-platformdirs/python-platformdirs.mk b/package/python-platformdirs/python-platformdirs.mk
index dba59abfdd..6305681a27 100644
--- a/package/python-platformdirs/python-platformdirs.mk
+++ b/package/python-platformdirs/python-platformdirs.mk
@@ -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))
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH v2 8/9] package/python-pkg-resources: new host package
2026-10-15 19:32 [Buildroot] [PATCH v2 1/9] package/python-setuptools: bump to version 84.0.0 James Hilliard
` (5 preceding siblings ...)
2026-10-15 19:32 ` [Buildroot] [PATCH v2 7/9] package/python-platformdirs: " James Hilliard
@ 2026-10-15 19:32 ` James Hilliard
2026-10-15 19:32 ` [Buildroot] [PATCH v2 9/9] boot/uboot: add host-python-pkg-resources dependency James Hilliard
2026-10-15 19:55 ` [Buildroot] [PATCH v2 1/9] package/python-setuptools: bump to version 84.0.0 Thomas Petazzoni via buildroot
8 siblings, 0 replies; 13+ messages in thread
From: James Hilliard @ 2026-10-15 19:32 UTC (permalink / raw)
To: buildroot; +Cc: James Hilliard, Fiona Klute, Thomas Petazzoni
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.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
.../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
diff --git a/package/python-pkg-resources/0001-LICENSE-copy-from-setuptools.patch b/package/python-pkg-resources/0001-LICENSE-copy-from-setuptools.patch
new file mode 100644
index 0000000000..3ecd63fc8c
--- /dev/null
+++ b/package/python-pkg-resources/0001-LICENSE-copy-from-setuptools.patch
@@ -0,0 +1,39 @@
+From a5315eb2caffc9b4a43439df81e6a0d7f7647352 Mon Sep 17 00:00:00 2001
+From: Achill Gilgenast <achill@achill.org>
+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 <achill@achill.org>
+Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
+---
+ 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.
diff --git a/package/python-pkg-resources/0002-Add-build-metadata-for-the-standalone-package.patch b/package/python-pkg-resources/0002-Add-build-metadata-for-the-standalone-package.patch
new file mode 100644
index 0000000000..e9982cd1a0
--- /dev/null
+++ b/package/python-pkg-resources/0002-Add-build-metadata-for-the-standalone-package.patch
@@ -0,0 +1,39 @@
+From: James Hilliard <james.hilliard1@gmail.com>
+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 <james.hilliard1@gmail.com>
+---
+ 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 = "."}
diff --git a/package/python-pkg-resources/python-pkg-resources.hash b/package/python-pkg-resources/python-pkg-resources.hash
new file mode 100644
index 0000000000..e80a20de6f
--- /dev/null
+++ b/package/python-pkg-resources/python-pkg-resources.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 5fc3f3fd8e23438a83d366897ce4389d2983d977b4339303359a0ffa0a33c15e python-pkg-resources-7fa76c17eacf8a67c6932c9c2dd97861f42439cf.tar.gz
+sha256 86da0f01aeae46348a3c3d465195dc1ceccde79f79e87769a64b8da04b2a4741 LICENSE
diff --git a/package/python-pkg-resources/python-pkg-resources.mk b/package/python-pkg-resources/python-pkg-resources.mk
new file mode 100644
index 0000000000..35076514f4
--- /dev/null
+++ b/package/python-pkg-resources/python-pkg-resources.mk
@@ -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))
diff --git a/support/testing/tests/package/test_python_pkg_resources.py b/support/testing/tests/package/test_python_pkg_resources.py
new file mode 100644
index 0000000000..72acde3dcd
--- /dev/null
+++ b/support/testing/tests/package/test_python_pkg_resources.py
@@ -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)
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH v2 9/9] boot/uboot: add host-python-pkg-resources dependency
2026-10-15 19:32 [Buildroot] [PATCH v2 1/9] package/python-setuptools: bump to version 84.0.0 James Hilliard
` (6 preceding siblings ...)
2026-10-15 19:32 ` [Buildroot] [PATCH v2 8/9] package/python-pkg-resources: new host package James Hilliard
@ 2026-10-15 19:32 ` James Hilliard
2026-10-15 20:23 ` Fiona Klute via buildroot
2026-10-15 19:55 ` [Buildroot] [PATCH v2 1/9] package/python-setuptools: bump to version 84.0.0 Thomas Petazzoni via buildroot
8 siblings, 1 reply; 13+ messages in thread
From: James Hilliard @ 2026-10-15 19:32 UTC (permalink / raw)
To: buildroot; +Cc: James Hilliard, Fiona Klute, Thomas Petazzoni
U-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.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
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(-)
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index 96b8cd0d2e..daa841309c 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -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)
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [Buildroot] [PATCH v2 1/9] package/python-setuptools: bump to version 84.0.0
2026-10-15 19:32 [Buildroot] [PATCH v2 1/9] package/python-setuptools: bump to version 84.0.0 James Hilliard
` (7 preceding siblings ...)
2026-10-15 19:32 ` [Buildroot] [PATCH v2 9/9] boot/uboot: add host-python-pkg-resources dependency James Hilliard
@ 2026-10-15 19:55 ` Thomas Petazzoni via buildroot
2026-10-15 19:58 ` James Hilliard
8 siblings, 1 reply; 13+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-10-15 19:55 UTC (permalink / raw)
To: James Hilliard; +Cc: Fiona Klute, buildroot
On Thu, Oct 15, 2026 at 01:32:35PM -0600, James Hilliard wrote:
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
> 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
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Buildroot] [PATCH v2 1/9] package/python-setuptools: bump to version 84.0.0
2026-10-15 19:55 ` [Buildroot] [PATCH v2 1/9] package/python-setuptools: bump to version 84.0.0 Thomas Petazzoni via buildroot
@ 2026-10-15 19:58 ` James Hilliard
0 siblings, 0 replies; 13+ messages in thread
From: James Hilliard @ 2026-10-15 19:58 UTC (permalink / raw)
To: Thomas Petazzoni; +Cc: Fiona Klute, buildroot
On Thu, Oct 15, 2026 at 1:55 PM Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
>
> On Thu, Oct 15, 2026 at 01:32:35PM -0600, James Hilliard wrote:
> > Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> > ---
> > 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?
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.
>
> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, co-owner and CEO, Bootlin
> Embedded Linux and Kernel engineering and training
> https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Buildroot] [PATCH v2 9/9] boot/uboot: add host-python-pkg-resources dependency
2026-10-15 19:32 ` [Buildroot] [PATCH v2 9/9] boot/uboot: add host-python-pkg-resources dependency James Hilliard
@ 2026-10-15 20:23 ` Fiona Klute via buildroot
2026-10-15 20:26 ` James Hilliard
0 siblings, 1 reply; 13+ messages in thread
From: Fiona Klute via buildroot @ 2026-10-15 20:23 UTC (permalink / raw)
To: James Hilliard, buildroot; +Cc: Thomas Petazzoni
Am 15.10.26 um 21:32 schrieb James Hilliard:
> U-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.
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
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
>
> ---
> 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(-)
>
> diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
> index 96b8cd0d2e..daa841309c 100644
> --- a/boot/uboot/uboot.mk
> +++ b/boot/uboot/uboot.mk
> @@ -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)
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Buildroot] [PATCH v2 9/9] boot/uboot: add host-python-pkg-resources dependency
2026-10-15 20:23 ` Fiona Klute via buildroot
@ 2026-10-15 20:26 ` James Hilliard
0 siblings, 0 replies; 13+ messages in thread
From: James Hilliard @ 2026-10-15 20:26 UTC (permalink / raw)
To: Fiona Klute; +Cc: Thomas Petazzoni, buildroot
On Thu, Oct 15, 2026 at 2:23 PM Fiona Klute <fiona.klute@gmx.de> wrote:
>
> Am 15.10.26 um 21:32 schrieb James Hilliard:
> > U-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.
>
> 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.
Yeah, I'm thinking it probably makes more sense to split it out as a
separate follow up however.
>
> Best regards,
> Fiona
>
> > Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> >
> > ---
> > 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(-)
> >
> > diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
> > index 96b8cd0d2e..daa841309c 100644
> > --- a/boot/uboot/uboot.mk
> > +++ b/boot/uboot/uboot.mk
> > @@ -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)
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2026-10-15 20:26 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-15 19:32 [Buildroot] [PATCH v2 1/9] package/python-setuptools: bump to version 84.0.0 James Hilliard
2026-10-15 19:32 ` [Buildroot] [PATCH v2 2/9] package/python-autocommand: add host variant James Hilliard
2026-10-15 19:32 ` [Buildroot] [PATCH v2 3/9] package/python-more-itertools: " James Hilliard
2026-10-15 19:32 ` [Buildroot] [PATCH v2 4/9] package/python-jaraco-context: " James Hilliard
2026-10-15 19:32 ` [Buildroot] [PATCH v2 5/9] package/python-jaraco-functools: " James Hilliard
2026-10-15 19:32 ` [Buildroot] [PATCH v2 6/9] package/python-jaraco-text: " James Hilliard
2026-10-15 19:32 ` [Buildroot] [PATCH v2 7/9] package/python-platformdirs: " James Hilliard
2026-10-15 19:32 ` [Buildroot] [PATCH v2 8/9] package/python-pkg-resources: new host package James Hilliard
2026-10-15 19:32 ` [Buildroot] [PATCH v2 9/9] boot/uboot: add host-python-pkg-resources dependency James Hilliard
2026-10-15 20:23 ` Fiona Klute via buildroot
2026-10-15 20:26 ` James Hilliard
2026-10-15 19:55 ` [Buildroot] [PATCH v2 1/9] package/python-setuptools: bump to version 84.0.0 Thomas Petazzoni via buildroot
2026-10-15 19:58 ` James Hilliard
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.