Skip to content

Commit 73a003f

Browse files
authored
gh-85283: Build _uuid extension with limited C API (#111010)
1 parent c58c63f commit 73a003f

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Doc/whatsnew/3.13.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -933,8 +933,8 @@ Build Changes
933933
library, GCC built-in atomic functions, or MSVC interlocked intrinsics.
934934

935935
* The ``errno``, ``md5``, ``resource``, ``winsound``, ``_ctypes_test``,
936-
``_scproxy``, ``_stat`` and ``_testimportmultiple`` C extensions are now
937-
built with the :ref:`limited C API <limited-c-api>`.
936+
``_scproxy``, ``_stat``, ``_testimportmultiple`` and ``_uuid`` C extensions
937+
are now built with the :ref:`limited C API <limited-c-api>`.
938938
(Contributed by Victor Stinner in :gh:`85283`.)
939939

940940

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
The ``errno``, ``md5``, ``resource``, ``winsound``, ``_ctypes_test``,
2-
``_scproxy``, ``_stat`` and ``_testimportmultiple`` C extensions are now built
3-
with the :ref:`limited C API <limited-c-api>`.
2+
``_scproxy``, ``_stat``, ``_testimportmultiple`` and ``_uuid`` C extensions are
3+
now built with the :ref:`limited C API <limited-c-api>`.
44
Patch by Victor Stinner.

Modules/_uuidmodule.c

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* DCE compatible Universally Unique Identifier library.
44
*/
55

6+
// Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
7+
#define Py_LIMITED_API 0x030d0000
8+
69
#include "Python.h"
710
#if defined(HAVE_UUID_H)
811
// AIX, FreeBSD, libuuid with pkgconf

0 commit comments

Comments
 (0)