diff options
| author | Ross Burton <ross.burton@arm.com> | 2023-05-04 16:22:53 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-05-04 10:23:40 -0700 |
| commit | 15bc6cc2f0206a07c0e896f200fecd2da6145637 (patch) | |
| tree | d7e080bf6d3ecc29f3e88a6b425866e336413617 /meta-python/recipes-devtools/python/python3-ninja_1.11.1.bb | |
| parent | 20d63965da15558a17bfc38bd5c151d0353e0315 (diff) | |
| download | meta-openembedded-15bc6cc2f0206a07c0e896f200fecd2da6145637.tar.gz | |
python3-ninja: simplify recipe
Delete more code from __init__.py as we'll never be running from inside
a build tree.
Replace the use of skbuild.setup() with setuptools.setup(): the same
Python module is built and the only value-add is the potential build of
ninja, which we don't want and delete anyway.
This means we can remove most of the DEPENDS and RDEPENDS.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-ninja_1.11.1.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-ninja_1.11.1.bb | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/meta-python/recipes-devtools/python/python3-ninja_1.11.1.bb b/meta-python/recipes-devtools/python/python3-ninja_1.11.1.bb index 635fd076a5..47a70aa38a 100644 --- a/meta-python/recipes-devtools/python/python3-ninja_1.11.1.bb +++ b/meta-python/recipes-devtools/python/python3-ninja_1.11.1.bb | |||
| @@ -2,33 +2,19 @@ SUMMARY = "Ninja is a small build system with a focus on speed" | |||
| 2 | LICENSE = "Apache-2.0" | 2 | LICENSE = "Apache-2.0" |
| 3 | LIC_FILES_CHKSUM = "file://LICENSE_Apache_20;md5=19cbd64715b51267a47bf3750cc6a8a5" | 3 | LIC_FILES_CHKSUM = "file://LICENSE_Apache_20;md5=19cbd64715b51267a47bf3750cc6a8a5" |
| 4 | 4 | ||
| 5 | DEPENDS = "ninja-native cmake-native python3-scikit-build-native" | ||
| 6 | |||
| 7 | PYPI_PACKAGE = "ninja" | 5 | PYPI_PACKAGE = "ninja" |
| 8 | PYPI_ARCHIVE_NAME_PREFIX = "pypi-" | 6 | PYPI_ARCHIVE_NAME_PREFIX = "pypi-" |
| 9 | 7 | ||
| 10 | inherit pypi python_setuptools_build_meta | 8 | inherit pypi python_setuptools_build_meta |
| 11 | SRC_URI[sha256sum] = "c833a47d39b2d1eee3f9ca886fa1581efd5be6068b82734ac229961ee8748f90" | 9 | SRC_URI[sha256sum] = "c833a47d39b2d1eee3f9ca886fa1581efd5be6068b82734ac229961ee8748f90" |
| 12 | 10 | ||
| 13 | SRC_URI += " \ | 11 | SRC_URI += "file://no-scikit-build.patch \ |
| 14 | file://CMakeLists.txt \ | 12 | file://run-ninja-from-path.patch" |
| 15 | file://run-ninja-from-path.patch \ | ||
| 16 | " | ||
| 17 | |||
| 18 | addtask do_patchbuild after do_patch before do_configure | ||
| 19 | |||
| 20 | do_patchbuild () { | ||
| 21 | rm -f ${S}/CMakeLists.txt | ||
| 22 | cp ${WORKDIR}/CMakeLists.txt ${S}/ | ||
| 23 | } | ||
| 24 | 13 | ||
| 25 | do_install:append () { | 14 | do_install:append () { |
| 26 | rm -rf ${D}${bindir} | 15 | rm -rf ${D}${bindir} |
| 27 | } | 16 | } |
| 28 | 17 | ||
| 29 | RDEPENDS:${PN} = " \ | 18 | RDEPENDS:${PN} = "ninja" |
| 30 | ninja \ | ||
| 31 | python3-scikit-build \ | ||
| 32 | " | ||
| 33 | 19 | ||
| 34 | BBCLASSEXTEND = "native nativesdk" | 20 | BBCLASSEXTEND = "native nativesdk" |
