summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-cmake_3.25.2.bb
diff options
context:
space:
mode:
authorZoltán Böszörményi <zboszor@gmail.com>2023-03-10 14:46:36 +0100
committerKhem Raj <raj.khem@gmail.com>2023-03-10 09:01:54 -0800
commit78f2b8c793842388d75ea27e5689c78ac0608363 (patch)
tree35167a60c18f9acca1ef575d7935843d119e34bd /meta-python/recipes-devtools/python/python3-cmake_3.25.2.bb
parentbf6779b62a72269f8cabeb416255c3f75d76d051 (diff)
downloadmeta-openembedded-78f2b8c793842388d75ea27e5689c78ac0608363.tar.gz
python3-cmake: New recipe
Some python modules rely on "import cmake". Only build and ship the python parts, and don't download and build cmake from sources. Use the already built cmake instead. The CMakeLists.txt file is a crippled copy from this cmake python module's sources, removing almost everything, and adding a dummy install target, so do_install() doesn't fail. The python code is patched so cmake is used from PATH. Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-cmake_3.25.2.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-cmake_3.25.2.bb37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-cmake_3.25.2.bb b/meta-python/recipes-devtools/python/python3-cmake_3.25.2.bb
new file mode 100644
index 0000000000..d0e11f9a61
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-cmake_3.25.2.bb
@@ -0,0 +1,37 @@
1SUMMARY = "CMake is an open-source, cross-platform family of tools designed to build, test and package software"
2LICENSE = "BSD-3-Clause & Apache-2.0"
3LIC_FILES_CHKSUM = " \
4 file://LICENSE_BSD_3;md5=9134cb61aebbdd79dd826ccb9ae6afcd \
5 file://LICENSE_Apache_20;md5=19cbd64715b51267a47bf3750cc6a8a5 \
6"
7
8DEPENDS = "ninja-native cmake-native python3-scikit-build-native"
9
10PYPI_PACKAGE = "cmake"
11PYPI_ARCHIVE_NAME_PREFIX = "pypi-"
12
13inherit pypi python_setuptools_build_meta
14SRC_URI[sha256sum] = "bcf9f0369743278ec26961542b31ed1610e6f4cfc20c00a3f1c61985abb3b0d2"
15
16SRC_URI += " \
17 file://CMakeLists.txt \
18 file://run-cmake-from-path.patch \
19"
20
21addtask do_patchbuild after do_patch before do_configure
22
23do_patchbuild () {
24 rm -f ${S}/CMakeLists.txt
25 cp ${WORKDIR}/CMakeLists.txt ${S}/
26}
27
28do_install:append () {
29 rm -rf ${D}${bindir}
30}
31
32RDEPENDS:${PN} = " \
33 cmake \
34 python3-scikit-build \
35"
36
37BBCLASSEXTEND = "native nativesdk"