summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrevor Woerner <trevor.woerner@amd.com>2025-01-21 15:43:28 -0500
committerMark Hatle <mark.hatle@amd.com>2025-03-30 14:16:15 -0600
commite6b8b628f071069e0d70869fd958eef1b126e3d4 (patch)
treea15c14d596307d5236b21b659861b8e5fc418f01
parentce47e346b229598a7fb5559677a3250128daa27a (diff)
downloadmeta-xilinx-e6b8b628f071069e0d70869fd958eef1b126e3d4.tar.gz
python3-pybind11: switch from pypi to cmake
Both python3-pybind11 and python3-pybind11-json exist in upstream meta-oe. However, as part of another task, when python3-bokeh_3.5.1 was updated one of its dependencies (python3-contourpy_1.2.1) required a newer version of python3-pybind11 than what was available in meta-oe scarthgap. A second task now needs python3-pybind11-json as well, which has a dependency on python3-pybind11. With the old: inherit pypi python_setuptools_build_meta python3-pybind11-json was not able to find python3-pybind11 during its configure stage: | CMake Error at CMakeLists.txt:26 (find_package): | By not providing "Findpybind11.cmake" in CMAKE_MODULE_PATH this project has | asked CMake to find a package configuration file provided by "pybind11", | but CMake did not find one. | | Could not find a package configuration file provided by "pybind11" | (requested version 2.2.4) with any of the following names: | | pybind11Config.cmake | pybind11-config.cmake | | Add the installation prefix of "pybind11" to CMAKE_PREFIX_PATH or set | "pybind11_DIR" to a directory containing one of the above files. If | "pybind11" provides a separate development package or SDK, be sure it has | been installed. Switching to: inherit cmake python_setuptools_build_meta fixes this issue and allows the python3-pybind11-json recipe from upsream meta-oe to configure (and build) successfully. Signed-off-by: Trevor Woerner <trevor.woerner@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-core/recipes-devtools/python/python3-pybind11_2.13.1.bb22
1 files changed, 20 insertions, 2 deletions
diff --git a/meta-xilinx-core/recipes-devtools/python/python3-pybind11_2.13.1.bb b/meta-xilinx-core/recipes-devtools/python/python3-pybind11_2.13.1.bb
index 3c03069b..32936113 100644
--- a/meta-xilinx-core/recipes-devtools/python/python3-pybind11_2.13.1.bb
+++ b/meta-xilinx-core/recipes-devtools/python/python3-pybind11_2.13.1.bb
@@ -1,9 +1,27 @@
1SUMMARY = "Seamless operability between C++11 and Python" 1SUMMARY = "Seamless operability between C++11 and Python"
2LICENSE = "BSD-3-Clause" 2LICENSE = "BSD-3-Clause"
3LIC_FILES_CHKSUM = "file://LICENSE;md5=774f65abd8a7fe3124be2cdf766cd06f" 3LIC_FILES_CHKSUM = "file://LICENSE;md5=774f65abd8a7fe3124be2cdf766cd06f"
4DEPENDS = "python3-cmake-native python3-ninja-native"
4 5
5SRC_URI[sha256sum] = "65be498b1cac516161add1508e65375674916bebf2570d057dc9c3c7bcbbc7b0" 6SRCREV = "941f45bcb51457884fa1afd6e24a67377d70f75c"
7SRC_URI = "git://github.com/pybind/pybind11.git;branch=stable;protocol=https"
6 8
7inherit pypi python_setuptools_build_meta 9S = "${WORKDIR}/git"
10
11inherit cmake python_setuptools_build_meta
12
13EXTRA_OECMAKE = "-DPYBIND11_TEST=OFF"
14
15do_configure:append() {
16 cmake_do_configure
17}
18
19do_compile:append() {
20 cmake_do_compile
21}
22
23do_install:append() {
24 cmake_do_install
25}
8 26
9BBCLASSEXTEND += "native" 27BBCLASSEXTEND += "native"