diff options
| author | Zoltán Böszörményi <zboszor@gmail.com> | 2025-11-12 11:04:54 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-11-12 06:49:44 -0800 |
| commit | a1395b9cd8d98aac63dafd22dba2ddbfdc52f574 (patch) | |
| tree | 60f25a79d97d9cc74dd42fcfa1481aa445971c2e /meta-python | |
| parent | c83aea044ede8a90068c2d271b48789b1e7c4cf4 (diff) | |
| download | meta-openembedded-a1395b9cd8d98aac63dafd22dba2ddbfdc52f574.tar.gz | |
python3-nanobind: Fix build
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>
Diffstat (limited to 'meta-python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-nanobind_2.9.2.bb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meta-python/recipes-devtools/python/python3-nanobind_2.9.2.bb b/meta-python/recipes-devtools/python/python3-nanobind_2.9.2.bb index 85105fd196..cfbe9cea66 100644 --- a/meta-python/recipes-devtools/python/python3-nanobind_2.9.2.bb +++ b/meta-python/recipes-devtools/python/python3-nanobind_2.9.2.bb | |||
| @@ -6,19 +6,20 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=7646f9ee25e49eaf53f89a10665c568c" | |||
| 6 | 6 | ||
| 7 | SRC_URI[sha256sum] = "e7608472de99d375759814cab3e2c94aba3f9ec80e62cfef8ced495ca5c27d6e" | 7 | SRC_URI[sha256sum] = "e7608472de99d375759814cab3e2c94aba3f9ec80e62cfef8ced495ca5c27d6e" |
| 8 | 8 | ||
| 9 | inherit pypi python_setuptools_build_meta cmake lib_package | 9 | inherit pypi cmake python_setuptools_build_meta |
| 10 | 10 | ||
| 11 | EXTRA_OECMAKE += "-DNB_TEST=OFF" | 11 | EXTRA_OECMAKE += "-DNB_TEST=OFF" |
| 12 | 12 | ||
| 13 | DEPENDS += "\ | 13 | DEPENDS += "\ |
| 14 | python3-cmake-native \ | ||
| 14 | python3-scikit-build-native \ | 15 | python3-scikit-build-native \ |
| 15 | python3-scikit-build-core-native \ | 16 | python3-scikit-build-core-native \ |
| 16 | ninja-native \ | 17 | ninja-native \ |
| 17 | " | 18 | " |
| 18 | 19 | ||
| 19 | do_install:append() { | 20 | do_install:append() { |
| 20 | install -d ${D}${base_libdir}/cmake/${PN} | 21 | install -d ${D}${libdir}/cmake/${PYPI_PACKAGE} |
| 21 | install -m 0644 ${S}/cmake/* ${D}${base_libdir}/cmake/${PN}/ | 22 | install -m 0644 ${S}/cmake/* ${D}${libdir}/cmake/${PYPI_PACKAGE}/ |
| 22 | } | 23 | } |
| 23 | 24 | ||
| 24 | FILES:${PN} += "${prefix_native}/* ${prefix_native}/${PN}/* ${base_libdir}/cmake/*" | 25 | FILES:${PN} += "${prefix_native}/* ${prefix_native}/${PN}/* ${base_libdir}/cmake/*" |
