]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-119679: Fix layout of PYD and DLL files on Windows when using PC/layout script...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 6 Jun 2024 15:38:31 +0000 (17:38 +0200)
committerGitHub <noreply@github.com>
Thu, 6 Jun 2024 15:38:31 +0000 (15:38 +0000)
(cherry picked from commit cccc9f63c63ae693ccd0e2d8fc6cfd3aa18feb8e)

Co-authored-by: Steve Dower <steve.dower@python.org>
PC/layout/main.py

index 716f01097fe3b00912290b016e7bd7fb5ac459b5..0350ed7af3f9b58590a4d8b1d0719892ffb277b8 100644 (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