diff mbox series

[meta-python,2/4] python3-charset-normalizer: Relax setuptools upper bound in build requirements

Message ID 20260709063251.3218170-2-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-python,1/4] python3-httptools: Relax setuptools upper bound in build requirements | expand

Commit Message

Khem Raj July 9, 2026, 6:32 a.m. UTC
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.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...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
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-relax-setuptools-upper-bound.patch b/meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-relax-setuptools-upper-bound.patch
new file mode 100644
index 0000000000..8d9ee26d8f
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-charset-normalizer/0001-pyproject.toml-relax-setuptools-upper-bound.patch
@@ -0,0 +1,24 @@ 
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+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 <raj.khem@gmail.com>
+---
+ 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"
diff --git a/meta-python/recipes-devtools/python/python3-charset-normalizer_3.4.7.bb b/meta-python/recipes-devtools/python/python3-charset-normalizer_3.4.7.bb
index b9dffb21e4..52c194626b 100644
--- a/meta-python/recipes-devtools/python/python3-charset-normalizer_3.4.7.bb
+++ b/meta-python/recipes-devtools/python/python3-charset-normalizer_3.4.7.bb
@@ -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"