[Bf-blender-cvs] [a7cf7b114f8] blender-v2.81-release: Fix for building with Python 3.8

Campbell Barton noreply at git.blender.org
Wed Oct 16 04:41:47 CEST 2019


Commit: a7cf7b114f82625aa5d81e91e26e67cbe7a842bc
Author: Campbell Barton
Date:   Wed Oct 16 13:39:29 2019 +1100
Branches: blender-v2.81-release
https://developer.blender.org/rBa7cf7b114f82625aa5d81e91e26e67cbe7a842bc

Fix for building with Python 3.8

===================================================================

M	source/blender/python/generic/py_capi_utils.c

===================================================================

diff --git a/source/blender/python/generic/py_capi_utils.c b/source/blender/python/generic/py_capi_utils.c
index a6983c38f0e..66cb4cc0bf3 100644
--- a/source/blender/python/generic/py_capi_utils.c
+++ b/source/blender/python/generic/py_capi_utils.c
@@ -28,6 +28,12 @@
 #include <Python.h>
 #include <frameobject.h>
 
+/* Needed for 'PyInterpreterState', we should remove this dependency. */
+#if PY_VERSION_HEX >= 0x03080000
+#  define Py_BUILD_CORE
+#  include <internal/pycore_pystate.h>
+#endif
+
 #include "BLI_utildefines.h" /* for bool */
 
 #include "py_capi_utils.h"



More information about the Bf-blender-cvs mailing list