${PTHREAD_INCLUDE_DIR}
${HDF5_INCLUDE_DIRS}
${PYTHON_INCLUDE_DIRS}
- ${Boost_INCLUDE_DIRS}
${PROJECT_BINARY_DIR}/salome_adm
${CMAKE_CURRENT_SOURCE_DIR}/../Basics
${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace
SALOME_ContainerPy.py
)
-ADD_DEFINITIONS(${HDF5_DEFINITIONS} ${OMNIORB_DEFINITIONS} ${BOOST_DEFINITIONS})
+ADD_DEFINITIONS(${HDF5_DEFINITIONS} ${OMNIORB_DEFINITIONS})
SET(COMMON_LIBS
Registry
SalomeNotification
SalomeIDLKernel
${OMNIORB_LIBRARIES}
${PYTHON_LIBRARIES}
- ${Boost_PYTHON3_LIBRARY}
)
IF(WITH_MPI_SEQ_CONTAINER)
#include <Python.h>
#include "Container_init_python.hxx"
+#ifdef BOS26455_WITH_BOOST_PYTHON
#include <boost/python.hpp>
+#endif
bool _Sleeping = false ;
std::string error;
if (PyErr_Occurred())
{
+#ifdef BOS26455_WITH_BOOST_PYTHON
PyObject *ptype = nullptr;
PyObject *pvalue = nullptr;
PyObject *ptraceback = nullptr;
boost::python::object format_exc = traceback.attr("format_exception");
boost::python::object formatted = format_exc(htype, hvalue, htraceback);
error = boost::python::extract<std::string>(boost::python::str("\n").join(formatted));
+#else
+ error = "Python exception is caught";
+#endif
}
return error;
}