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

This commit is contained in:
Steve Dower 2024-06-06 16:11:42 +01:00 committed by GitHub
parent fd104dfcb8
commit cccc9f63c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -202,7 +202,7 @@ def in_build(f, dest="", new_name=None, no_lib=False):
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 in_build(f, dest="", new_name=None, no_lib=False):
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