]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-85283: Build _uuid extension with limited C API (#111010)
authorVictor Stinner <vstinner@python.org>
Tue, 17 Oct 2023 23:07:12 +0000 (01:07 +0200)
committerGitHub <noreply@github.com>
Tue, 17 Oct 2023 23:07:12 +0000 (23:07 +0000)
Doc/whatsnew/3.13.rst
Misc/NEWS.d/next/Build/2023-10-17-01-56-11.gh-issue-85283.V156T2.rst
Modules/_uuidmodule.c

index 54f007f7d12551bc4c0b812881d963dfd71dc300..e5f01fa2df35dd4846a5a7bd6c78bd43a50efd93 100644 (file)
@@ -933,8 +933,8 @@ Build Changes
   library, GCC built-in atomic functions, or MSVC interlocked intrinsics.
 
 * The ``errno``, ``md5``, ``resource``, ``winsound``, ``_ctypes_test``,
-  ``_scproxy``, ``_stat`` and ``_testimportmultiple`` C extensions are now
-  built with the :ref:`limited C API <limited-c-api>`.
+  ``_scproxy``, ``_stat``, ``_testimportmultiple`` and ``_uuid`` C extensions
+  are now built with the :ref:`limited C API <limited-c-api>`.
   (Contributed by Victor Stinner in :gh:`85283`.)
 
 
index cd26f7be28839919ccf70726f1ad2891f1d377b8..49b5da32f8f72e292400311a277bb1f5dcb139e8 100644 (file)
@@ -1,4 +1,4 @@
 The ``errno``, ``md5``, ``resource``, ``winsound``, ``_ctypes_test``,
-``_scproxy``, ``_stat`` and ``_testimportmultiple`` C extensions are now built
-with the :ref:`limited C API <limited-c-api>`.
+``_scproxy``, ``_stat``, ``_testimportmultiple`` and ``_uuid`` C extensions are
+now built with the :ref:`limited C API <limited-c-api>`.
 Patch by Victor Stinner.
index 2f5be1c5144d8363501e701a8da80100f3186edc..b35cccb5bdc406d9c89c837e90de03a483480544 100644 (file)
@@ -3,6 +3,9 @@
  * DCE compatible Universally Unique Identifier library.
  */
 
+// Need limited C API version 3.13 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
+#define Py_LIMITED_API 0x030d0000
+
 #include "Python.h"
 #if defined(HAVE_UUID_H)
   // AIX, FreeBSD, libuuid with pkgconf