From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 2/4] python3-build: upgrade 1.5.1 -> 1.6.0
Date: Wed, 2 Sep 2026 12:57:49 +0100 [thread overview]
Message-ID: <20260902115751.2762897-2-richard.purdie@linuxfoundation.org> (raw)
In-Reply-To: <20260902115751.2762897-1-richard.purdie@linuxfoundation.org>
Features:
- Add --report=PATH to write a machine-readable JSON report of built artifacts; --metadata
now also accepts .whl files - by @gaborbernat (#198)
- The srcdir argument now accepts .tar.gz source distributions, extracting and building from
them - by @gaborbernat (#311)
- The “Unmet dependencies” error from --no-isolation builds now shows the wanted version,
found version, and interpreter - by @gaborbernat (#504)
- Add --sdist-extract-dir to extract the intermediate sdist into a persistent directory,
enabling compiler cache reuse across rebuilds - by @gaborbernat (#614)
- Add --env-dir to place the isolated build environment at a fixed path, enabling compiler
cache reuse across builds - by @gaborbernat (#655)
- Print a summary of resolved dependency versions (name==version) after installing them in
isolated builds - by @gaborbernat (#959)
- On build failure, print a tip pointing to --env-dir and --sdist-extract-dir for debugging and
link to the “Debug a failed build” how-to - reported by @dimpase, implemented by @gaborbernat (#966)
Bugfixes:
- Drain verbose subprocess output inline instead of using a ThreadPoolExecutor, which silently
swallowed logging errors - by @henryiii (#1098)
- Reject a file passed as --env-dir with a clear error instead of a raw FileExistsError - by @henryiii (#1100)
- Emit CLI warnings to stderr instead of stdout, so they no longer corrupt --metadata
JSON output on stdout - by @ymyzk (#1111)
- Fix the Windows symlink support probe always returning False due to a stale object
interpolated into the destination path - by @henryiii (#1118)
- Fix metadata_path’s build-backend fallback returning a nonexistent dist-info path for wheels
with a build tag - by @henryiii (#1119)
- Write pip/uv requirements and constraints files with \n instead of os.linesep, avoiding doubled
\r\r\n line endings on Windows - by @henryiii (#1120)
- Batch of small robustness fixes: correct macOS release parsing for the minimum pip version, avoid
sharing the mutable default build-system table between builders, keep the original error when
isolated-environment setup fails early, and raise BuildException for an invalid wheel - by @henryiii (#1121)
- Decide color support independently for stdout and stderr instead of only checking stdout.isatty(),
so redirecting one stream no longer disables or leaks ANSI colors on the other - by @henryiii (#1123)
- Pass --dependency-constraints-txt files through to the installer unmodified instead of re-parsing them
into a deduplicated set of lines, fixing a case where a hashed requirement (e.g. from pip-compile
--generate-hashes) could have its --hash continuation line separated from its requirement line and
silently dropped, depending on the interpreter’s hash seed - by @manfred-kaiser (#1140)
Removals:
- Remove exc_info parameter and attribute from BuildBackendException. - by @layday (#1161)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
.../python3-build/check-valid-dist.patch | 18 ++++++++++++------
...3-build_1.5.1.bb => python3-build_1.6.0.bb} | 2 +-
2 files changed, 13 insertions(+), 7 deletions(-)
rename meta/recipes-devtools/python/{python3-build_1.5.1.bb => python3-build_1.6.0.bb} (87%)
diff --git a/meta/recipes-devtools/python/python3-build/check-valid-dist.patch b/meta/recipes-devtools/python/python3-build/check-valid-dist.patch
index dd6f256e266..82c31a49a4e 100644
--- a/meta/recipes-devtools/python/python3-build/check-valid-dist.patch
+++ b/meta/recipes-devtools/python/python3-build/check-valid-dist.patch
@@ -1,4 +1,7 @@
-Ignore invalid distributions when checking dependencies
+From a2a217409e01e3ebea88dce85d81dbe6b3c79187 Mon Sep 17 00:00:00 2001
+From: Ross Burton <ross.burton@arm.com>
+Date: Wed, 12 Aug 2026 12:35:29 +0100
+Subject: [PATCH] Ignore invalid distributions when checking dependencies
If there's an empty directory foo-1.2.dist-info/ on the search path then
importlib will return that as a distribution called "foo".
@@ -12,12 +15,15 @@ the dist-info directory is empties but remains in the sysroot.
Upstream-Status: Submitted [https://github.com/pypa/build/pull/1145]
Signed-off-by: Ross Burton <ross.burton@arm.com>
+---
+ src/build/_util.py | 5 +++++
+ 1 file changed, 5 insertions(+)
-diff --git i/src/build/_util.py w/src/build/_util.py
-index c365003..ba047c7 100644
---- i/src/build/_util.py
-+++ w/src/build/_util.py
-@@ -67,6 +67,11 @@ def _check_dependency(
+diff --git a/src/build/_util.py b/src/build/_util.py
+index cce8f94..54bc02c 100644
+--- a/src/build/_util.py
++++ b/src/build/_util.py
+@@ -63,6 +63,11 @@ def _check_dependency(
yield (*ancestral_req_strings, normalised_req_string)
return
diff --git a/meta/recipes-devtools/python/python3-build_1.5.1.bb b/meta/recipes-devtools/python/python3-build_1.6.0.bb
similarity index 87%
rename from meta/recipes-devtools/python/python3-build_1.5.1.bb
rename to meta/recipes-devtools/python/python3-build_1.6.0.bb
index d572ca846fc..acec9cd9efd 100644
--- a/meta/recipes-devtools/python/python3-build_1.5.1.bb
+++ b/meta/recipes-devtools/python/python3-build_1.6.0.bb
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=310439af287b0fb4780b2ad6907c256c"
SRC_URI += "file://check-valid-dist.patch"
-SRC_URI[sha256sum] = "94e17f1db803ab22f46049376c44c8437c52090f0dfdf1adc43df56542d644fb"
+SRC_URI[sha256sum] = "bd2c8afc603e7a2e0ce70e2ea85f0a6d02043bafbd307f5bada0f98669eca5af"
inherit pypi python_flit_core
next prev parent reply other threads:[~2026-09-02 11:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-02 11:57 [PATCH 1/4] debianutils: upgrade 5.23.2 -> 5.24 Richard Purdie
2026-09-02 11:57 ` Richard Purdie [this message]
2026-09-02 12:02 ` Patchtest results for [PATCH 2/4] python3-build: upgrade 1.5.1 -> 1.6.0 patchtest
2026-09-02 11:57 ` [PATCH 3/4] python3-pygobject: upgrade 3.56.3 -> 3.58.0 Richard Purdie
2026-09-02 11:57 ` [PATCH 4/4] python3-uv-build: upgrade 0.12.6 -> 0.12.7 Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260902115751.2762897-2-richard.purdie@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.