From 41750e1ada321a3e7c8c1f27cb112bf29a450545 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Fri, 28 Jul 2023 17:29:09 +0400 Subject: [PATCH] Added a WA for running Python API in debug mode (#18848) --- src/bindings/python/CMakeLists.txt | 4 ++++ src/bindings/python/thirdparty/pybind11 | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bindings/python/CMakeLists.txt b/src/bindings/python/CMakeLists.txt index f75454f393f..facfb221831 100644 --- a/src/bindings/python/CMakeLists.txt +++ b/src/bindings/python/CMakeLists.txt @@ -192,6 +192,10 @@ endif() # Build the code # +# TODO: find a real root cause and remove this workaround +# or localize it to the specific place of the code +add_definitions(-DPYBIND11_NO_ASSERT_GIL_HELD_INCREF_DECREF) + find_package(pybind11 ${pybind11_min_version} QUIET) if(NOT pybind11_FOUND) diff --git a/src/bindings/python/thirdparty/pybind11 b/src/bindings/python/thirdparty/pybind11 index 1a917f1852e..2965fa8de3c 160000 --- a/src/bindings/python/thirdparty/pybind11 +++ b/src/bindings/python/thirdparty/pybind11 @@ -1 +1 @@ -Subproject commit 1a917f1852eb7819b671fc3fa862840f4c491a07 +Subproject commit 2965fa8de3cf9e82c789f906a525a76197b186c1