summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/files/0001-remove-pkg_resources-import.patch
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2026-03-15 21:24:43 +0100
committerKhem Raj <raj.khem@gmail.com>2026-03-18 14:33:25 -0700
commit4ac220373ba02a11e125f28e3b5c057847503958 (patch)
treebc126e85d811424f46b1fda8d2d230c4b256b648 /meta-python/recipes-devtools/python/files/0001-remove-pkg_resources-import.patch
parent8193a3c0ef7722a3e021091a2d4ecd23ed6ce8ae (diff)
downloadmeta-openembedded-4ac220373ba02a11e125f28e3b5c057847503958.tar.gz
python3-xstatic: add patch to build w/ Setuptools 82
Setuptools 82 dropped pkg_resources module. It is not used by the setup script, nevertheless, it is imported, and this missing module fails compilation. This patch removes this import. Upstream started to work on refactoring their setup scripts, so this patch is not appropriate to them - once/if they release, most likely this patch can be dropped. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/files/0001-remove-pkg_resources-import.patch')
-rw-r--r--meta-python/recipes-devtools/python/files/0001-remove-pkg_resources-import.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/files/0001-remove-pkg_resources-import.patch b/meta-python/recipes-devtools/python/files/0001-remove-pkg_resources-import.patch
new file mode 100644
index 0000000000..6278d58fc1
--- /dev/null
+++ b/meta-python/recipes-devtools/python/files/0001-remove-pkg_resources-import.patch
@@ -0,0 +1,32 @@
1From d9152f0dc31b655654edcee6859b3e3a06ef4c98 Mon Sep 17 00:00:00 2001
2From: Gyorgy Sarvari <skandigraun@gmail.com>
3Date: Sun, 15 Mar 2026 21:16:54 +0100
4Subject: [PATCH] remove pkg_resources import
5
6setutools 82 dropped pkf_resources module. Also, beside importing
7it, it isn't used for anything.
8
9Upstream has started to rework their setup config, and moved to
10build_meta, however that's still in development, and there seem to
11be no stable version yet.
12
13Once there is a new version, most likely this patch can be dropped.
14
15Upstream-Status: Inappropriate [see above]
16Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
17---
18 setup.py | 1 -
19 1 file changed, 1 deletion(-)
20
21diff --git a/setup.py b/setup.py
22index b655222..c2aff91 100644
23--- a/setup.py
24+++ b/setup.py
25@@ -8,7 +8,6 @@ XStatic - setup.py
26 import os
27
28 from setuptools import setup, find_packages
29-import pkg_resources
30
31 # The README.txt file should be written in reST so that PyPI can use
32 # it to generate your project's PyPI page.