Skip to content

Commit fbdff38

Browse files
gh-119679: Fix layout of PYD and DLL files on Windows when using PC/layout script (GH-120133)
(cherry picked from commit cccc9f6) Co-authored-by: Steve Dower <[email protected]>
1 parent 13e5f45 commit fbdff38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PC/layout/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def in_build(f, dest="", new_name=None, no_lib=False):
202202

203203
yield "LICENSE.txt", ns.build / "LICENSE.txt"
204204

205-
dest="" if ns.flat_dlls else "DLLs/"
205+
dest = "" if ns.flat_dlls else "DLLs/"
206206

207207
for _, src in rglob(ns.build, "*.pyd"):
208208
if ns.include_freethreaded:
@@ -226,7 +226,7 @@ def in_build(f, dest="", new_name=None, no_lib=False):
226226
continue
227227
if src in EXCLUDE_FROM_DLLS:
228228
continue
229-
yield from in_build(src.name, no_lib=True)
229+
yield from in_build(src.name, dest=dest, no_lib=True)
230230

231231
if ns.zip_lib:
232232
zip_name = PYTHON_ZIP_NAME

0 commit comments

Comments
 (0)