*/
#include <Python.h>
+#include <datetime.h> // from python
#include "src/createrepo_c.h"
Py_AtExit(cr_xml_dump_cleanup);
Py_AtExit(cr_package_parser_cleanup);
+ /* Python macro to use datetime objects */
+
+ PyDateTime_IMPORT;
+
/* Module constants */
/* Version */
*/
#include <Python.h>
-#include <python2.7/datetime.h>
+#include <datetime.h> // from python
#include <assert.h>
#include <stddef.h>
#include <time.h>
static PyObject *
updaterecord_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{
- /* Python macro to use datetime objects */
- PyDateTime_IMPORT;
-
CR_UNUSED(args);
CR_UNUSED(kwds);
_UpdateRecordObject *self = (_UpdateRecordObject *)type->tp_alloc(type, 0);