From e4c3520a4719a6b648adc2cac2c30802578f16dd Mon Sep 17 00:00:00 2001 From: Sam Gross Date: Thu, 16 Nov 2023 20:07:00 +0000 Subject: [PATCH] gh-111650: Generate pyconfig.h on Windows Prior to this change, the Py_NOGIL macro was not defined when building C API extensions with the `--disable-gil` build on Windows. `Py_NOGIL` was only defined as a pre-processor definition in pyproject.props, but that is not used by C-API extensions. This instead generates the `pyconfig.h` header on Windows as part of the build process. For now, `Py_NOGIL` is the only macro that may be conditionally defined in the generated file. --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 8c8273fc7a3aa38..f568cd9fa82208d 100644 --- a/.gitignore +++ b/.gitignore @@ -92,6 +92,7 @@ Programs/_testembed PC/python_nt*.h PC/pythonnt_rc*.h Modules/python.exp +PC/pyconfig.h PC/*/*.exp PC/*/*.lib PC/*/*.bsc