diff options
author | Steve Dower <steve.dower@python.org> | 2023-12-13 15:38:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-13 15:38:45 (GMT) |
commit | 79dad03747fe17634136209f1bcaf346a8c10617 (patch) | |
tree | 0ca624c64faee7dba75917b1483ab9318c2676f5 /PC/layout/main.py | |
parent | 498a096a51a215cd3084845131e619222b906b3e (diff) | |
download | cpython-79dad03747fe17634136209f1bcaf346a8c10617.zip cpython-79dad03747fe17634136209f1bcaf346a8c10617.tar.gz cpython-79dad03747fe17634136209f1bcaf346a8c10617.tar.bz2 |
gh-111650: Ensure pyconfig.h includes Py_GIL_DISABLED on Windows (GH-112778)
Diffstat (limited to 'PC/layout/main.py')
-rw-r--r-- | PC/layout/main.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/PC/layout/main.py b/PC/layout/main.py index cb2e487..accfd51 100644 --- a/PC/layout/main.py +++ b/PC/layout/main.py @@ -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 |