From b04b6048f276cc4c755d0503ff59835933fb60c4 Mon Sep 17 00:00:00 2001 From: Jack Mitchell Date: Tue, 18 Aug 2020 09:52:15 +0100 Subject: python3-pybind11: install both python wheel and cmake build The wheel for this module doesn't install the required cmake files, yet the cmake build doesn't install the required python module files. Therefore use manual calls to the cmake and distutils classes in order to get both into the final package. This method is also what other popular distros use such as Archlinux. Signed-off-by: Jack Mitchell Acked-by: Trevor Gamblin Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-pybind11_2.5.0.bb | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'meta-python') diff --git a/meta-python/recipes-devtools/python/python3-pybind11_2.5.0.bb b/meta-python/recipes-devtools/python/python3-pybind11_2.5.0.bb index 46bba8d8d1..9674ec0938 100644 --- a/meta-python/recipes-devtools/python/python3-pybind11_2.5.0.bb +++ b/meta-python/recipes-devtools/python/python3-pybind11_2.5.0.bb @@ -17,4 +17,18 @@ BBCLASSEXTEND = "native" EXTRA_OECMAKE = "-DPYBIND11_TEST=OFF" -inherit cmake python3native +inherit cmake setuptools3 python3native + +do_configure() { + cmake_do_configure +} + +do_compile() { + distutils3_do_compile + cmake_do_compile +} + +do_install() { + distutils3_do_install + cmake_do_install +} -- cgit v1.2.3-54-g00ecf