gh-110968: Py_MOD_PER_INTERPRETER_GIL_SUPPORTED was added to 3.12 (#111584)
This commit is contained in:
parent
102685c4c8
commit
ef83b3fc00
@ -82,10 +82,10 @@ struct PyModuleDef_Slot {
|
||||
#endif /* New in 3.5 */
|
||||
|
||||
/* for Py_mod_multiple_interpreters: */
|
||||
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030d0000
|
||||
#define Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED ((void *)0)
|
||||
#define Py_MOD_MULTIPLE_INTERPRETERS_SUPPORTED ((void *)1)
|
||||
#define Py_MOD_PER_INTERPRETER_GIL_SUPPORTED ((void *)2)
|
||||
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030c0000
|
||||
# define Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED ((void *)0)
|
||||
# define Py_MOD_MULTIPLE_INTERPRETERS_SUPPORTED ((void *)1)
|
||||
# define Py_MOD_PER_INTERPRETER_GIL_SUPPORTED ((void *)2)
|
||||
#endif
|
||||
|
||||
struct PyModuleDef {
|
||||
|
@ -3,8 +3,8 @@
|
||||
#endif
|
||||
|
||||
#ifndef Py_NOGIL
|
||||
// Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
|
||||
#define Py_LIMITED_API 0x030d0000
|
||||
// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
|
||||
#define Py_LIMITED_API 0x030c0000
|
||||
#endif
|
||||
|
||||
// gh-85283: On Windows, Py_LIMITED_API requires Py_BUILD_CORE to not attempt
|
||||
|
@ -5,8 +5,8 @@ posixshmem - A Python extension that provides shm_open() and shm_unlink()
|
||||
#include "pyconfig.h" // Py_NOGIL
|
||||
|
||||
#ifndef Py_NOGIL
|
||||
// Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
|
||||
#define Py_LIMITED_API 0x030d0000
|
||||
// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
|
||||
#define Py_LIMITED_API 0x030c0000
|
||||
#endif
|
||||
|
||||
#include <Python.h>
|
||||
|
@ -8,8 +8,8 @@
|
||||
#endif
|
||||
|
||||
#ifndef Py_NOGIL
|
||||
// Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
|
||||
#define Py_LIMITED_API 0x030d0000
|
||||
// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
|
||||
#define Py_LIMITED_API 0x030c0000
|
||||
#endif
|
||||
|
||||
#include <Python.h>
|
||||
|
@ -15,8 +15,8 @@
|
||||
#include "pyconfig.h" // Py_NOGIL
|
||||
#endif
|
||||
|
||||
// Need limited C API version 3.13 for PyModule_Add() on Windows
|
||||
#ifndef Py_NOGIL
|
||||
// Need limited C API version 3.13 for PyModule_Add() on Windows
|
||||
#define Py_LIMITED_API 0x030d0000
|
||||
#endif
|
||||
|
||||
|
@ -8,8 +8,8 @@
|
||||
#include "pyconfig.h" // Py_NOGIL
|
||||
#endif
|
||||
|
||||
// For now, only limited C API 3.13 is supported
|
||||
#ifndef Py_NOGIL
|
||||
// For now, only limited C API 3.13 is supported
|
||||
#define Py_LIMITED_API 0x030d0000
|
||||
#endif
|
||||
|
||||
|
@ -8,8 +8,8 @@
|
||||
#endif
|
||||
|
||||
#ifndef Py_NOGIL
|
||||
// Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
|
||||
#define Py_LIMITED_API 0x030d0000
|
||||
// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
|
||||
#define Py_LIMITED_API 0x030c0000
|
||||
#endif
|
||||
|
||||
#include "Python.h"
|
||||
|
@ -5,8 +5,8 @@
|
||||
#endif
|
||||
|
||||
#ifndef Py_NOGIL
|
||||
// Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
|
||||
#define Py_LIMITED_API 0x030d0000
|
||||
// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
|
||||
#define Py_LIMITED_API 0x030c0000
|
||||
#endif
|
||||
|
||||
#include "Python.h"
|
||||
|
@ -21,8 +21,8 @@
|
||||
#endif
|
||||
|
||||
#ifndef Py_NOGIL
|
||||
// Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
|
||||
#define Py_LIMITED_API 0x030d0000
|
||||
// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
|
||||
#define Py_LIMITED_API 0x030c0000
|
||||
#endif
|
||||
|
||||
#include "Python.h"
|
||||
|
@ -3,7 +3,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef Py_NOGIL
|
||||
// Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
|
||||
// Need limited C API version 3.13 for PySys_Audit()
|
||||
#define Py_LIMITED_API 0x030d0000
|
||||
#endif
|
||||
|
||||
|
@ -67,8 +67,8 @@
|
||||
#endif
|
||||
|
||||
#ifndef Py_NOGIL
|
||||
// Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
|
||||
#define Py_LIMITED_API 0x030d0000
|
||||
// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
|
||||
#define Py_LIMITED_API 0x030c0000
|
||||
#endif
|
||||
|
||||
#include "Python.h"
|
||||
|
@ -36,8 +36,8 @@
|
||||
*/
|
||||
|
||||
#ifndef Py_NOGIL
|
||||
// Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
|
||||
#define Py_LIMITED_API 0x030d0000
|
||||
// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
|
||||
#define Py_LIMITED_API 0x030c0000
|
||||
#endif
|
||||
|
||||
#include <Python.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user