gh-119679: Fix layout of PYD and DLL files on Windows when using PC/layout script (GH-120133)

(cherry picked from commit cccc9f63c6)

Co-authored-by: Steve Dower <[email protected]>
This commit is contained in:
Miss Islington (bot)
2024-06-06 15:38:31 +00:00
committed by GitHub
co-authored by Steve Dower
parent 13e5f455c4
commit fbdff3803a
+2 -2
View File
@@ -202,7 +202,7 @@ def get_layout(ns):
yield "LICENSE.txt", ns.build / "LICENSE.txt"
dest="" if ns.flat_dlls else "DLLs/"
dest = "" if ns.flat_dlls else "DLLs/"
for _, src in rglob(ns.build, "*.pyd"):
if ns.include_freethreaded:
@@ -226,7 +226,7 @@ def get_layout(ns):
continue
if src in EXCLUDE_FROM_DLLS:
continue
yield from in_build(src.name, no_lib=True)
yield from in_build(src.name, dest=dest, no_lib=True)
if ns.zip_lib:
zip_name = PYTHON_ZIP_NAME