gh-111650: Ensure pyconfig.h includes Py_GIL_DISABLED on Windows (GH-112778)

This commit is contained in:
Steve Dower 2023-12-13 15:38:45 +00:00 committed by GitHub
parent 498a096a51
commit 79dad03747
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 112 additions and 44 deletions

View file

@ -73,7 +73,10 @@ def copy_if_modified(src, dest):
)
if do_copy:
shutil.copy2(src, dest)
try:
shutil.copy2(src, dest)
except FileNotFoundError:
raise FileNotFoundError(src) from None
def get_lib_layout(ns):
@ -208,8 +211,7 @@ def get_layout(ns):
for dest, src in rglob(ns.source / "Include", "**/*.h"):
yield "include/{}".format(dest), src
src = ns.source / "PC" / "pyconfig.h"
yield "include/pyconfig.h", src
yield "include/pyconfig.h", ns.build / "pyconfig.h"
for dest, src in get_tcltk_lib(ns):
yield dest, src