mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-15 23:05:34 +01:00
Fix the order of inherited classes, so the nanobuild python module
actually gets built.
Also, put the cmake files into the correct location, i.e.
${libdir}/cmake/nanobind
instead of
${base_libdir}/cmake/python3-nanobind
onnx 1.20.0rc1 uses nanobind and during its build it detects the
presence of the python module, and wants to use the nanobind cmake
module, both of which fail.
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
28 lines
847 B
BlitzBasic
28 lines
847 B
BlitzBasic
SUMMARY = "nanobind: tiny and efficient C++/Python bindings"
|
|
DESCRIPTION = "nanobind: tiny and efficient C++/Python bindings"
|
|
HOMEPAGE = "https://github.com/wjakob/nanobind"
|
|
LICENSE = "BSD-3-Clause"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=7646f9ee25e49eaf53f89a10665c568c"
|
|
|
|
SRC_URI[sha256sum] = "e7608472de99d375759814cab3e2c94aba3f9ec80e62cfef8ced495ca5c27d6e"
|
|
|
|
inherit pypi cmake python_setuptools_build_meta
|
|
|
|
EXTRA_OECMAKE += "-DNB_TEST=OFF"
|
|
|
|
DEPENDS += "\
|
|
python3-cmake-native \
|
|
python3-scikit-build-native \
|
|
python3-scikit-build-core-native \
|
|
ninja-native \
|
|
"
|
|
|
|
do_install:append() {
|
|
install -d ${D}${libdir}/cmake/${PYPI_PACKAGE}
|
|
install -m 0644 ${S}/cmake/* ${D}${libdir}/cmake/${PYPI_PACKAGE}/
|
|
}
|
|
|
|
FILES:${PN} += "${prefix_native}/* ${prefix_native}/${PN}/* ${base_libdir}/cmake/*"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|