summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-ninja/no-scikit-build.patch
diff options
context:
space:
mode:
authorJiaying Song <jiaying.song.cn@windriver.com>2026-03-16 17:34:42 +0800
committerKhem Raj <raj.khem@gmail.com>2026-03-18 14:33:27 -0700
commit16a72067f53cd667e674e77913586b3693c51ef2 (patch)
tree1425942222f22c4ee131870e1d1cbd61aa6a1099 /meta-python/recipes-devtools/python/python3-ninja/no-scikit-build.patch
parentf75f4164fd7184ed47e119c782cea583b96fbb45 (diff)
downloadmeta-openembedded-16a72067f53cd667e674e77913586b3693c51ef2.tar.gz
python3-ninja: upgrade 1.11.1.1 -> 1.13.0
Changelog: https://github.com/scikit-build/ninja-python-distributions/releases Upstream commit [1] switched build system from scikit-build to scikit-build-core, which changed pyproject.toml structure and rewrote __init__.py. Update patches accordingly: - no-scikit-build.patch: rewrite for new pyproject.toml structure, replace scikit-build-core with setuptools, and remove 'readme' from dynamic fields as setuptools cannot handle the fancy-pypi-readme plugin. - run-ninja-from-path.patch: drop. Old version imported skbuild modules in __init__.py which caused ImportError in OE since scikit-build is not installed. New version replaced these imports with stdlib sysconfig, so the patch is no longer needed. - CMakeLists.txt: drop. This was a stub file added to prevent scikit-build from failing when it could not find CMakeLists.txt. Since we now use setuptools which does not require it, the file can be removed. [1] https://github.com/scikit-build/ninja-python-distributions/commit/f3b4a786be Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-ninja/no-scikit-build.patch')
-rw-r--r--meta-python/recipes-devtools/python/python3-ninja/no-scikit-build.patch39
1 files changed, 15 insertions, 24 deletions
diff --git a/meta-python/recipes-devtools/python/python3-ninja/no-scikit-build.patch b/meta-python/recipes-devtools/python/python3-ninja/no-scikit-build.patch
index b7d191e244..4dfbb2675a 100644
--- a/meta-python/recipes-devtools/python/python3-ninja/no-scikit-build.patch
+++ b/meta-python/recipes-devtools/python/python3-ninja/no-scikit-build.patch
@@ -1,31 +1,22 @@
1We don't need to build ninja so there's no need to use scikit-build, 1We don't need to build ninja so there's no need to use scikit-build-core,
2as we just need the python module with it's one ninja() function. 2as we just need the python module with its one ninja() function.
3 3
4Upstream-Status: Inappropriate 4Upstream-Status: Inappropriate
5Signed-off-by: Ross Burton <ross.burton@arm.com> 5Signed-off-by: Ross Burton <ross.burton@arm.com>
6Signed-off-by: Jiaying Song <jiaying.song.cn@windriver.com>
6 7
7diff --git a/pyproject.toml b/pyproject.toml
8index b895c20..577b642 100644
9--- a/pyproject.toml 8--- a/pyproject.toml
10+++ b/pyproject.toml 9+++ b/pyproject.toml
11@@ -2,7 +2,6 @@ 10@@ -1,5 +1,4 @@
12 requires = [ 11 [build-system]
13 "setuptools >=42", 12-requires = ["scikit-build-core>=0.10"]
14 "setuptools-scm[toml]", 13-build-backend = "backend"
15- "scikit-build", 14-backend-path = ["_build_backend"]
16 ] 15+requires = ["setuptools", "setuptools-scm"]
17 build-backend = "setuptools.build_meta" 16+build-backend = "setuptools.build_meta"
18 17
19diff --git a/setup.py b/setup.py 18@@ -7,3 +6,3 @@
20index dbe1fbc..3259754 100755 19 name = "ninja"
21--- a/setup.py 20-dynamic = ["version", "readme"]
22+++ b/setup.py 21+dynamic = ["version"]
23@@ -5,7 +5,7 @@ import os 22 description = "Ninja is a small build system with a focus on speed"
24 import sys
25 from distutils.text_file import TextFile
26
27-from skbuild import setup
28+from setuptools import setup
29
30 # Add current folder to path
31 # This is required to import versioneer in an isolated pip build