Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions include/podio/detail/Pythonizations.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
#define PODIO_DETAIL_PYTHONIZATIONS_H

#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <string>

typedef struct _object PyObject;

namespace podio::detail::pythonizations {

// Callback function for the subscript pythonization
Expand All @@ -16,4 +17,4 @@ void pythonize_subscript(PyObject* klass, const std::string& name);

} // namespace podio::detail::pythonizations

#endif // PODIO_DETAIL_PYTHONIZATIONS_H
#endif // PODIO_DETAIL_PYTHONIZATIONS_H
3 changes: 0 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ FUNCTION(PODIO_ADD_LIB_AND_DICT libname headers sources selection )
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_include_directories(${libname} SYSTEM PUBLIC
${Python3_INCLUDE_DIRS}
)

# dictionary
set(dictname ${libname}Dict)
Expand Down
4 changes: 3 additions & 1 deletion src/Pythonizations.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include <cstring>
#include <stdexcept>

#include <Python.h>

namespace podio::detail::pythonizations {

// Callback function for the subscript pythonization
Expand Down Expand Up @@ -52,4 +54,4 @@ void pythonize_subscript(PyObject* klass, const std::string& name) {
Py_DECREF(method);
}

} // namespace podio::detail::pythonizations
} // namespace podio::detail::pythonizations