Skip to contentSkip to conversation

package/python-charset-normalizer: fix build with setuptools 84.2

PATCH In review Bernd Kuhls 3 participants 3 messages Oct 25

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/python-charset-normalizer: fix build with setuptools 84.2

Buildroot commit 2027954db7f5f42ed976ea2f4655e0cd224c7ee7 bumped python-setuptools from 80.9.0 to 84.2.1 causing a build error with this package:

ERROR Unmet dependencies
(checked against /home/autobuild/autobuild/instance-38/output-1/host/bin/python3):

    setuptools<84.1,>=68
        wanted: <84.1,>=68
        found: 84.2.1

Fixes:
https://autobuild.buildroot.net/results/036/03644dd6955f4f8ccee2b0fe14f4500f0332c2bd/

Fixes 2027954db7f5f42ed976ea2f4655e0cd224c7ee7
---
 ...1-chore-allow-setuptools-84.2-builds.patch | 26 +++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 package/python-charset-normalizer/0001-chore-allow-setuptools-84.2-builds.patch
package/python-charset-normalizer/0001-chore-allow-setuptools-84.2-builds.patch new file +26 -0
new file mode 100644
index 0000000000..67969bf499
@@ -0,0 +1,26 @@
+From e836793ecb0bb79b87a14e369370591e87a8bc97 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <[email protected]>
+Date: Sun, 25 Oct 2026 22:07:00 +0100
+Subject: [PATCH] chore: allow setuptools 84.2 builds
+
+Upstream: https://github.com/jawah/charset_normalizer/pull/828
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index b80909b..aae3185 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools>=68,<84.1"]
++requires = ["setuptools>=68,<84.3"]
+ build-backend = "backend"
+ backend-path = ["_build_hook"]
+ 
+-- 
+2.47.3
+
Signature · 6 lines
2.47.3

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

Am 25.10.26 um 22:11 schrieb Bernd Kuhls:

Quoted 37 lines

Buildroot commit 2027954db7f5f42ed976ea2f4655e0cd224c7ee7 bumped python-setuptools from 80.9.0 to 84.2.1 causing a build error with this package:

ERROR Unmet dependencies
(checked against /home/autobuild/autobuild/instance-38/output-1/host/bin/python3):

     setuptools<84.1,>=68
         wanted: <84.1,>=68
         found: 84.2.1

Fixes:
https://autobuild.buildroot.net/results/036/03644dd6955f4f8ccee2b0fe14f4500f0332c2bd/

Fixes 2027954db7f5f42ed976ea2f4655e0cd224c7ee7
---
  ...1-chore-allow-setuptools-84.2-builds.patch | 26 +++++++++++++++++++
  1 file changed, 26 insertions(+)

create mode 100644 package/python-charset-normalizer/0001-chore-allow-setuptools-84.2-builds.patch

package/python-charset-normalizer/0001-chore-allow-setuptools-84.2-builds.patch new file +10 -0
new file mode 100644
index 0000000000..67969bf499
@@ -0,0 +1,26 @@
+From e836793ecb0bb79b87a14e369370591e87a8bc97 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <[email protected]>
+Date: Sun, 25 Oct 2026 22:07:00 +0100
+Subject: [PATCH] chore: allow setuptools 84.2 builds
+
+Upstream: https://github.com/jawah/charset_normalizer/pull/828
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ pyproject.toml | 2 +-

package/python-charset-normalizer/0001-chore-allow-setuptools-84.2-builds.patch line 20

Quoted 10 lines
package/python-charset-normalizer/0001-chore-allow-setuptools-84.2-builds.patch new file +10 -0
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index b80909b..aae3185 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools>=68,<84.1"]
++requires = ["setuptools>=68,<84.3"]

I've just sent an alternative Buildroot patch to disable the dependency check. Increasing the limit only makes it likely we'll get the same problem with the next setuptools update. Having that arbitrary upper bound is the real problem, but I have my doubts a patch to remove it would be accepted upstream. :-(

Best regards,
Fiona

package/python-charset-normalizer/0001-chore-allow-setuptools-84.2-builds.patch line 26

Quoted 6 lines
package/python-charset-normalizer/0001-chore-allow-setuptools-84.2-builds.patch new file +6 -0
+ build-backend = "backend"
+ backend-path = ["_build_hook"]
+
+--
+2.47.3
+

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

#2 lore raw
Quoted 47 lines · Fiona Klute

Am 25.10.26 um 22:11 schrieb Bernd Kuhls:

Quoted 45 lines

Buildroot commit 2027954db7f5f42ed976ea2f4655e0cd224c7ee7 bumped python-setuptools from 80.9.0 to 84.2.1 causing a build error with this package:

ERROR Unmet dependencies
(checked against /home/autobuild/autobuild/instance-38/output-1/host/bin/python3):

     setuptools<84.1,>=68
         wanted: <84.1,>=68
         found: 84.2.1

Fixes:
https://autobuild.buildroot.net/results/036/03644dd6955f4f8ccee2b0fe14f4500f0332c2bd/

Fixes 2027954db7f5f42ed976ea2f4655e0cd224c7ee7
---
  ...1-chore-allow-setuptools-84.2-builds.patch | 26 +++++++++++++++++++
  1 file changed, 26 insertions(+)

create mode 100644 package/python-charset-normalizer/0001-chore-allow-setuptools-84.2-builds.patch

package/python-charset-normalizer/0001-chore-allow-setuptools-84.2-builds.patch new file +18 -0
new file mode 100644
index 0000000000..67969bf499
@@ -0,0 +1,26 @@
+From e836793ecb0bb79b87a14e369370591e87a8bc97 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <[email protected]>
+Date: Sun, 25 Oct 2026 22:07:00 +0100
+Subject: [PATCH] chore: allow setuptools 84.2 builds
+
+Upstream: https://github.com/jawah/charset_normalizer/pull/828
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+---
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index b80909b..aae3185 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
Quoted 8 lines

package/python-charset-normalizer/0001-chore-allow-setuptools-84.2-builds.patch line 20

Quoted 2 lines
package/python-charset-normalizer/0001-chore-allow-setuptools-84.2-builds.patch new file +2 -0
+-requires = ["setuptools>=68,<84.1"]
++requires = ["setuptools>=68,<84.3"]

I've just sent an alternative Buildroot patch to disable the dependency check. Increasing the limit only makes it likely we'll get the same problem with the next setuptools update. Having that arbitrary upper bound is the real problem, but I have my doubts a patch to remove it would be accepted upstream. :-(

Yeah, whenever packages preemptively bound the upper version I prefer to just disable the check for this reason, AFAIU this pattern is used in a number of python projects because some build frontends(i.e. pip) allow build time dependencies scoped to specific package builds which isn't something that's really all that feasible for buildroot.

Quoted 10 lines

Best regards,
Fiona

package/python-charset-normalizer/0001-chore-allow-setuptools-84.2-builds.patch line 26

Quoted 6 lines
package/python-charset-normalizer/0001-chore-allow-setuptools-84.2-builds.patch new file +6 -0
+ build-backend = "backend"
+ backend-path = ["_build_hook"]
+
+--
+2.47.3
+

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