Skip to content

Commit

Permalink
pythongh-119679: Fix layout of PYD and DLL files on Windows when usin…
Browse files Browse the repository at this point in the history
…g PC/layout script (pythonGH-120133)
  • Loading branch information
zooba committed Jun 6, 2024
1 parent fd104df commit cccc9f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PC/layout/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit cccc9f6

Please sign in to comment.