python3-httptools: Relax setuptools upper bound in build requirements
PATCH 1/4 python3-httptools: Relax setuptools upper bound in build requirements
The upstream pyproject.toml caps setuptools at <=82.0.1, but OE builds with --no-isolation against the native setuptools (now 83.0.0), so the build fails with "Missing dependencies: setuptools<=82.0.1,>=80.9.0". Drop the spurious upper bound.
--- ...ct.toml-relax-setuptools-upper-bound.patch | 27 +++++++++++++++++++ .../python/python3-httptools_0.8.0.bb | 1 + 2 files changed, 28 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-httptools/0001-pyproject.toml-relax-setuptools-upper-bound.patch
meta-python/recipes-devtools/python/python3-httptools/0001-pyproject.toml-relax-setuptools-upper-bound.patch new file +27 -0
@@ -0,0 +1,27 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 8 Jul 2026 00:00:00 +0000 +Subject: [PATCH] pyproject.toml: relax setuptools upper bound + +OE provides setuptools via DEPENDS and builds with --no-isolation, so the +upstream upper cap on setuptools is spurious and breaks the build whenever +oe-core ships a newer setuptools (currently 83.0.0). + +Upstream-Status: Inappropriate [oe-core specific setuptools version] +Signed-off-by: Khem Raj <[email protected]> +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 1111111..2222222 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,6 +1,6 @@ + [build-system] + build-backend = "setuptools.build_meta" +-requires = ["setuptools>=80.9.0,<=82.0.1"] ++requires = ["setuptools>=80.9.0"] + + [project] + name = "httptools"
meta-python/recipes-devtools/python/python3-httptools_0.8.0.bb +1 -0
@@ -5,4 +5,5 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=0a2d82955bf3facdf04cb882655e840e" inherit pypi python_setuptools_build_meta ptest-python-pytest +SRC_URI += "file://0001-pyproject.toml-relax-setuptools-upper-bound.patch" SRC_URI[sha256sum] = "6b2a32f18d97e16e90827d7a819ffa8dbd8cc245fc4e1fa9d1095b54ef4bd999"
PATCH 2/4 python3-charset-normalizer: Relax setuptools upper bound in build requirements
The upstream pyproject.toml caps setuptools at <82.1, but OE builds with --no-isolation against the native setuptools (now 83.0.0), so the build fails with "Missing dependencies: setuptools<82.1,>=68". Drop the spurious upper bound.
--- ...ct.toml-relax-setuptools-upper-bound.patch | 24 +++++++++++++++++++ .../python3-charset-normalizer_3.4.7.bb | 1 + 2 files changed, 25 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-relax-setuptools-upper-bound.patch
meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-relax-setuptools-upper-bound.patch new file +24 -0
@@ -0,0 +1,24 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 8 Jul 2026 00:00:00 +0000 +Subject: [PATCH] pyproject.toml: relax setuptools upper bound + +OE provides setuptools via DEPENDS and builds with --no-isolation, so the +upstream upper cap on setuptools is spurious and breaks the build whenever +oe-core ships a newer setuptools (currently 83.0.0). + +Upstream-Status: Inappropriate [oe-core specific setuptools version] +Signed-off-by: Khem Raj <[email protected]> +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 1111111..2222222 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,3 +1,3 @@ + [build-system] +-requires = ["setuptools>=68,<82.1"] ++requires = ["setuptools>=68"] + build-backend = "backend"
meta-python/recipes-devtools/python/python3-charset-normalizer_3.4.7.bb +1 -0
@@ -3,6 +3,7 @@ HOMEPAGE = "https://github.com/ousret/charset_normalizer" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=48178f3fc1374ad7e830412f812bde05" +SRC_URI += "file://0001-pyproject.toml-relax-setuptools-upper-bound.patch" SRC_URI[sha256sum] = "ae89db9e5f98a11a4bf50407d4363e7b09b31e55bc117b4f7d80aab97ba009e5" DEPENDS += "python3-setuptools-scm-native python3-mypy-native"
PATCH 3/4 python3-pychromecast: Relax build requirements
In reply to Khem RajThe upstream pyproject.toml caps setuptools at <83.0, but OE builds with --no-isolation against the native setuptools (now 83.0.0), so the build fails with "Missing dependencies: setuptools<83.0,>=65.6". Drop the spurious upper bound.
Fold this into the existing wheel-version relaxation so pyproject.toml is adjusted by a single patch.
---
...1-pyproject.toml-relax-build-requirements.patch} | 13 +++++++++----
.../python/python3-pychromecast_14.0.10.bb | 2 +-
2 files changed, 10 insertions(+), 5 deletions(-)
rename meta-python/recipes-devtools/python/python3-pychromecast/{0001-Allow-building-with-wheel-0.47.patch => 0001-pyproject.toml-relax-build-requirements.patch} (55%)meta-python/recipes-devtools/python/python3-pychromecast/0001-pyproject.toml-relax-build-requirements.patch renamed from meta-python/recipes-devtools/python/python3-pychromecast/0001-Allow-building-with-wheel-0.47.patch +9 -4
@@ -1,9 +1,14 @@ From a82451e8f2db33e22fef6714ddbd35a3e03debff Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Thu, 14 May 2026 11:49:05 -0700 -Subject: [PATCH] Allow building with wheel 0.47+ +Subject: [PATCH] pyproject.toml: Relax build requirements -Upstream-Status: Pending +Allow building with wheel 0.47+ and drop the upstream setuptools upper +cap. OE provides setuptools via DEPENDS and builds with --no-isolation, +so the cap is spurious and breaks the build whenever oe-core ships a +newer setuptools (currently 83.0.0). + +Upstream-Status: Inappropriate [oe-core specific dependency versions] Signed-off-by: Khem Raj <[email protected]> ---
@@ -17,7 +22,7 @@ index 20524ca..fc62798 100644 @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=65.6,<83.0", "wheel>=0.37.1,<0.47.0"] -+requires = ["setuptools>=65.6,<83.0", "wheel>=0.37.1,<0.48.0"] ++requires = ["setuptools>=65.6", "wheel>=0.37.1,<0.48.0"] build-backend = "setuptools.build_meta" - + [project]
meta-python/recipes-devtools/python/python3-pychromecast_14.0.10.bb +1 -1
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/balloob/pychromecast" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=b1dbd4e85f47b389bdadee9c694669f5" -SRC_URI += "file://0001-Allow-building-with-wheel-0.47.patch" +SRC_URI += "file://0001-pyproject.toml-relax-build-requirements.patch" SRC_URI[sha256sum] = "f05a1c8d727d4f104c8c731688053033e05157f2ab81bc8eef50ec0c62f9373c" inherit pypi python_setuptools_build_meta
PATCH 4/4 python3-pikepdf: Fix cross build with scikit-build-core
In reply to Khem Rajdo_compile failed to find ninja, and after providing it CMake's C++20 module dependency scanning (clang-scan-deps) failed in the cross environment with "'cstddef' file not found".
Add ninja-native and python3-scikit-build-core-native to DEPENDS so the --no-isolation build finds its build tools, and disable C++20 module scanning via CMAKE_ARGS since pikepdf uses the C++20 language but no named modules.
--- .../recipes-devtools/python/python3-pikepdf_10.9.1.bb | 7 +++++++ 1 file changed, 7 insertions(+)
meta-python/recipes-devtools/python/python3-pikepdf_10.9.1.bb +7 -0
@@ -9,6 +9,11 @@ SRC_URI += "file://0001-pyproject.toml-Do-not-strip.patch" inherit pypi python_setuptools_build_meta +# pikepdf uses the C++20 language but no C++20 named modules. CMake's module +# dependency scanning (clang-scan-deps) does not work in the cross environment, +# so turn it off. +export CMAKE_ARGS = "-DCMAKE_CXX_SCAN_FOR_MODULES=OFF" + PYPI_PACKAGE = "pikepdf" CVE_PRODUCT = "pikepdf"
@@ -16,6 +21,8 @@ CVE_PRODUCT = "pikepdf" DEPENDS += " \ python3-pybind11-native \ python3-nanobind-native \ + python3-scikit-build-core-native \ + ninja-native \ qpdf \ "