diff mbox series

[meta-python,1/2] python3-pybind11: Upgrade 2.12.0 -> 2.13.6

Message ID 20250320123227.2198743-1-leon.anavi@konsulko.com
State Accepted
Headers show
Series [meta-python,1/2] python3-pybind11: Upgrade 2.12.0 -> 2.13.6 | expand

Commit Message

Leon Anavi March 20, 2025, 12:32 p.m. UTC
Upgrade to release 2.13.6:

- A new self._pybind11_conduit_v1_() method is automatically added
  to all py::class_-wrapped types, to enable type-safe
  interoperability between different independent Python/C++
  bindings systems, including pybind11 versions with different
  PYBIND11_INTERNALS_VERSION's. Supported on pybind11 2.11.2,
  2.12.1, and 2.13.6+.
- Using __cpp_nontype_template_args instead of
  __cpp_nontype_template_parameter_class.
- Properly translate C++ exception to Python exception when
  creating Python buffer from wrapped object.
- Adds an answer (FAQ) for "What is a highly conclusive and simple
  way to find memory leaks?".

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
 .../{python3-pybind11_2.12.0.bb => python3-pybind11_2.13.6.bb}  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-pybind11_2.12.0.bb => python3-pybind11_2.13.6.bb} (92%)

Comments

Khem Raj March 20, 2025, 8:10 p.m. UTC | #1
On Thu, Mar 20, 2025 at 5:32 AM Leon Anavi via lists.openembedded.org
<leon.anavi=konsulko.com@lists.openembedded.org> wrote:
>
> Upgrade to release 2.13.6:
>
> - A new self._pybind11_conduit_v1_() method is automatically added
>   to all py::class_-wrapped types, to enable type-safe
>   interoperability between different independent Python/C++
>   bindings systems, including pybind11 versions with different
>   PYBIND11_INTERNALS_VERSION's. Supported on pybind11 2.11.2,
>   2.12.1, and 2.13.6+.
> - Using __cpp_nontype_template_args instead of
>   __cpp_nontype_template_parameter_class.
> - Properly translate C++ exception to Python exception when
>   creating Python buffer from wrapped object.
> - Adds an answer (FAQ) for "What is a highly conclusive and simple
>   way to find memory leaks?".
>

I am seeing a build failure, build was on qemuriscv32 but I wonder if
any 32bit system will have this error. Once qemuarm build is done I
will report back.

   | -- Found PythonInterp:
/home/kraj01/yoe/buildtools-5.1.2/sysroots/x86_64-pokysdk-linux/usr/bin/python3
(found suitable version "3.12.8", minimum required is "3.7")
   | CMake Error at
/home/kraj01/yoe/build/tmp/work/riscv32-yoe-linux/python3-pybind11-json/0.2.15/recipe-sysroot/usr/share/cmake/pybind11/FindPythonLibsNew.cmake:214
(message):
   |   Python config failure: Python is 64-bit, chosen compiler is 32-bit
   | Call Stack (most recent call first):
   |   /home/kraj01/yoe/build/tmp/work/riscv32-yoe-linux/python3-pybind11-json/0.2.15/recipe-sysroot/usr/share/cmake/pybind11/pybind11Tools.cmake:50
(find_package)
   |   /home/kraj01/yoe/build/tmp/work/riscv32-yoe-linux/python3-pybind11-json/0.2.15/recipe-sysroot/usr/share/cmake/pybind11/pybind11Common.cmake:228
(include)
   |   /home/kraj01/yoe/build/tmp/work/riscv32-yoe-linux/python3-pybind11-json/0.2.15/recipe-sysroot/usr/share/cmake/pybind11/pybind11Config.cmake:250
(include)
   |   CMakeLists.txt:26 (find_package)
   |
   |
   | -- Configuring incomplete, errors occurred!

> Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
> ---
>  .../{python3-pybind11_2.12.0.bb => python3-pybind11_2.13.6.bb}  | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>  rename meta-python/recipes-devtools/python/{python3-pybind11_2.12.0.bb => python3-pybind11_2.13.6.bb} (92%)
>
> diff --git a/meta-python/recipes-devtools/python/python3-pybind11_2.12.0.bb b/meta-python/recipes-devtools/python/python3-pybind11_2.13.6.bb
> similarity index 92%
> rename from meta-python/recipes-devtools/python/python3-pybind11_2.12.0.bb
> rename to meta-python/recipes-devtools/python/python3-pybind11_2.13.6.bb
> index 0403e406a4..ee5722fbcb 100644
> --- a/meta-python/recipes-devtools/python/python3-pybind11_2.12.0.bb
> +++ b/meta-python/recipes-devtools/python/python3-pybind11_2.13.6.bb
> @@ -7,7 +7,7 @@ DEPENDS = "\
>      python3-ninja-native \
>  "
>
> -SRCREV = "3e9dfa2866941655c56877882565e7577de6fc7b"
> +SRCREV = "a2e59f0e7065404b44dfe92a28aca47ba1378dc4"
>  SRC_URI = "\
>      git://github.com/pybind/pybind11.git;branch=stable;protocol=https \
>  "
> --
> 2.39.5
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#116135): https://lists.openembedded.org/g/openembedded-devel/message/116135
> Mute This Topic: https://lists.openembedded.org/mt/111807326/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-pybind11_2.12.0.bb b/meta-python/recipes-devtools/python/python3-pybind11_2.13.6.bb
similarity index 92%
rename from meta-python/recipes-devtools/python/python3-pybind11_2.12.0.bb
rename to meta-python/recipes-devtools/python/python3-pybind11_2.13.6.bb
index 0403e406a4..ee5722fbcb 100644
--- a/meta-python/recipes-devtools/python/python3-pybind11_2.12.0.bb
+++ b/meta-python/recipes-devtools/python/python3-pybind11_2.13.6.bb
@@ -7,7 +7,7 @@  DEPENDS = "\
     python3-ninja-native \
 "
 
-SRCREV = "3e9dfa2866941655c56877882565e7577de6fc7b"
+SRCREV = "a2e59f0e7065404b44dfe92a28aca47ba1378dc4"
 SRC_URI = "\
     git://github.com/pybind/pybind11.git;branch=stable;protocol=https \
 "