summarylogtreecommitdiffstats
path: root/0001-Include-internal-pycore-frame.patch
blob: 3a2b0e2e4c890ba7ee7371b2a96be317efcf533e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/pytraj/core/c_dict.cpp	2023-06-01 01:42:18.849155346 +0200
+++ b/pytraj/core/c_dict.cpp	2023-06-01 01:41:36.897435811 +0200
@@ -452,6 +452,12 @@
   #define PyMem_RawRealloc(p, n)       PyMem_Realloc(p, n)
   #define PyMem_RawFree(p)             PyMem_Free(p)
 #endif
+#if PY_VERSION_HEX >= 0x030b00a6
+  #ifndef Py_BUILD_CORE
+    #define Py_BUILD_CORE 1
+  #endif
+  #include "internal/pycore_frame.h"
+#endif
 #if CYTHON_COMPILING_IN_PYSTON
   #define __Pyx_PyCode_HasFreeVars(co)  PyCode_HasFreeVars(co)
   #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno)