In pybind11 (and nanobind), auxiliary headers and PYBIND11_MAKE_OPAQUE definitions for distributed modules need to be included in every translation unit. Otherwise, a one-definition-rule violation occurs, which is undefined behavior.
Introduces a common Python helper header that must be used in all Python-binding related .cpp files.
In pybind11 (and nanobind), auxiliary headers and
PYBIND11_MAKE_OPAQUE
definitions for distributed modules need to be included in every translation unit. Otherwise, a one-definition-rule violation occurs, which is undefined behavior.Introduces a common Python helper header that must be used in all Python-binding related
.cpp
files.