https://github.com/python/cpython/commit/fbdff3803af23f632469933e33ee735f853bbdec commit: fbdff3803af23f632469933e33ee735f853bbdec branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: zooba <[email protected]> date: 2024-06-06T15:38:31Z summary:
gh-119679: Fix layout of PYD and DLL files on Windows when using PC/layout script (GH-120133) (cherry picked from commit cccc9f63c63ae693ccd0e2d8fc6cfd3aa18feb8e) Co-authored-by: Steve Dower <[email protected]> files: M PC/layout/main.py diff --git a/PC/layout/main.py b/PC/layout/main.py index 716f01097fe3b0..0350ed7af3f9b5 100644 --- a/PC/layout/main.py +++ b/PC/layout/main.py @@ -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 _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
