[pypy-commit] cffi default: potential fix for Py 3.8

arigo pypy.commits at gmail.com
Mon Feb 25 02:52:17 EST 2019


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r3230:07d1803cb17b
Date: 2019-02-25 08:52 +0100
http://bitbucket.org/cffi/cffi/changeset/07d1803cb17b/

Log:	potential fix for Py 3.8

diff --git a/c/call_python.c b/c/call_python.c
--- a/c/call_python.c
+++ b/c/call_python.c
@@ -1,3 +1,9 @@
+#if PY_VERSION_HEX >= 0x03080000
+# define Py_BUILD_CORE
+/* for access to the fields of PyInterpreterState */
+#  include "internal/pycore_pystate.h"
+# undef Py_BUILD_CORE
+#endif
 
 static PyObject *_get_interpstate_dict(void)
 {


More information about the pypy-commit mailing list