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 <ml@embed.me.uk>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Jack Mitchell 2020-08-18 09:52:15 +01:00 committed by Khem Raj
parent 0b22ed995f
commit b04b6048f2

View File

@ -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
}