diff --git a/include/podio/detail/Pythonizations.h b/include/podio/detail/Pythonizations.h index b8661eace..92d74f469 100644 --- a/include/podio/detail/Pythonizations.h +++ b/include/podio/detail/Pythonizations.h @@ -2,9 +2,10 @@ #define PODIO_DETAIL_PYTHONIZATIONS_H #define PY_SSIZE_T_CLEAN -#include #include +typedef struct _object PyObject; + namespace podio::detail::pythonizations { // Callback function for the subscript pythonization @@ -16,4 +17,4 @@ void pythonize_subscript(PyObject* klass, const std::string& name); } // namespace podio::detail::pythonizations -#endif // PODIO_DETAIL_PYTHONIZATIONS_H \ No newline at end of file +#endif // PODIO_DETAIL_PYTHONIZATIONS_H diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2d2d312c7..e5fecaa38 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -27,9 +27,6 @@ FUNCTION(PODIO_ADD_LIB_AND_DICT libname headers sources selection ) $ $ ) - target_include_directories(${libname} SYSTEM PUBLIC - ${Python3_INCLUDE_DIRS} - ) # dictionary set(dictname ${libname}Dict) diff --git a/src/Pythonizations.cc b/src/Pythonizations.cc index 5602dc016..26a361514 100644 --- a/src/Pythonizations.cc +++ b/src/Pythonizations.cc @@ -3,6 +3,8 @@ #include #include +#include + namespace podio::detail::pythonizations { // Callback function for the subscript pythonization @@ -52,4 +54,4 @@ void pythonize_subscript(PyObject* klass, const std::string& name) { Py_DECREF(method); } -} // namespace podio::detail::pythonizations \ No newline at end of file +} // namespace podio::detail::pythonizations