From: Steve Dower Date: Thu, 5 Jun 2025 22:03:38 +0000 (+0100) Subject: [3.13] gh-135151: Fix incorrect packaging of pyconfig.h in Windows installer (GH... X-Git-Tag: v3.13.5~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=728a881321f00a11f2f3270f0e0108415f2a208b;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-135151: Fix incorrect packaging of pyconfig.h in Windows installer (GH-135180) --- diff --git a/Doc/howto/free-threading-extensions.rst b/Doc/howto/free-threading-extensions.rst index 882e39416a2d..c7d1c00cd17d 100644 --- a/Doc/howto/free-threading-extensions.rst +++ b/Doc/howto/free-threading-extensions.rst @@ -23,6 +23,14 @@ You can use it to enable code that only runs under the free-threaded build:: /* code that only runs in the free-threaded build */ #endif +.. note:: + + On Windows, this macro is not defined automatically, but must be specified + to the compiler when building. The :func:`sysconfig.get_config_var` function + can be used to determine whether the current running interpreter had the + macro defined. + + Module Initialization ===================== diff --git a/Misc/NEWS.d/next/Windows/2025-06-05-13-52-36.gh-issue-135151.4PfNZQ.rst b/Misc/NEWS.d/next/Windows/2025-06-05-13-52-36.gh-issue-135151.4PfNZQ.rst new file mode 100644 index 000000000000..06039a87c03a --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2025-06-05-13-52-36.gh-issue-135151.4PfNZQ.rst @@ -0,0 +1,3 @@ +Avoid distributing modified :file:`pyconfig.h` in the traditional installer. +Extension module builds must always specify ``Py_GIL_DISABLED`` when +targeting the free-threaded runtime. diff --git a/Tools/msi/dev/dev_files.wxs b/Tools/msi/dev/dev_files.wxs index 4357dc86d9d3..d7c8e9007e40 100644 --- a/Tools/msi/dev/dev_files.wxs +++ b/Tools/msi/dev/dev_files.wxs @@ -3,7 +3,8 @@ - + +