mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
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:
parent
0b22ed995f
commit
b04b6048f2
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user