diff --git a/pyproject.toml b/pyproject.toml index 874d5b2..43076ca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ language = "c" version = {attr = "extrainterpreters.__version__"} [project] -name = "python-extracontext" +name = "extrainterpreters" dynamic = ["version"] description = "PEP 554 Subinterpreters usable from Python code" readme = {file = "README.md", content-type = "text/markdown"} diff --git a/src/extrainterpreters/memoryboard.c b/src/extrainterpreters/memoryboard.c index 38ffa9d..6f87cea 100644 --- a/src/extrainterpreters/memoryboard.c +++ b/src/extrainterpreters/memoryboard.c @@ -126,6 +126,9 @@ _memoryboard_modexec(PyObject *m) static PyModuleDef_Slot _memoryboard_slots[] = { {Py_mod_exec, _memoryboard_modexec}, {Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED}, +#if PY_VERSION_HEX >= 0x030D0000 + {Py_mod_gil, Py_MOD_GIL_NOT_USED}, +#endif {0, NULL} }; @@ -156,5 +159,6 @@ static struct PyModuleDef _memoryboard = { PyMODINIT_FUNC PyInit__memoryboard(void) { - return PyModuleDef_Init(&_memoryboard); + PyObject *m = PyModuleDef_Init(&_memoryboard); + return m; }