I found this in the pybind11 cmake files. It seems that the debug extension need to be build with Py_DEBUG.
https://sources.debian.org/src/pybind11/2.2.4-2/tools/pybind11Tools.cmake/#L140
I found this in the pybind11 cmake files. It seems that the debug extension need to be build with Py_DEBUG.
https://sources.debian.org/src/pybind11/2.2.4-2/tools/pybind11Tools.cmake/#L140