From c56c697192188c5ed63c4f746a67c46c6399b89e Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Wed, 11 Mar 2020 06:49:13 -0400 Subject: [PATCH] fix compatibility with Python 3.8 Last-Update: 2020-02-20 Forwarded: no Bug-Debian: https://bugs.debian.org/951707 Python 3.8 changes the type of an element of the PyTypeObject struct (https://www.python.org/dev/peps/pep-0590/) leading to compiler errors. Gbp-Pq: Name python3.8-compat.patch --- libpyclingo/pyclingo.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libpyclingo/pyclingo.cc b/libpyclingo/pyclingo.cc index 9480203..31293da 100644 --- a/libpyclingo/pyclingo.cc +++ b/libpyclingo/pyclingo.cc @@ -1177,7 +1177,11 @@ PyTypeObject ObjectBase::type = { sizeof(T), // tp_basicsize 0, // tp_itemsize PythonDetail::Get_tp_dealloc::value, // tp_dealloc +#if PY_VERSION_HEX >= 0x03080000 + 0, // tp_vectorcall_offset +#else nullptr, // tp_print +#endif nullptr, // tp_getattr nullptr, // tp_setattr nullptr, // tp_compare -- 2.30.2