Skip to content

Commit

Permalink
gh-126074: Removes unnecessary DLLs from embeddable package (GH-126143)
Browse files Browse the repository at this point in the history
(cherry picked from commit f51fd84)

Co-authored-by: Steve Dower <steve.dower@python.org>
  • Loading branch information
miss-islington and zooba authored Nov 5, 2024
1 parent ffb44cd commit 88e0131
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Removed unnecessary DLLs from Windows embeddable package
8 changes: 7 additions & 1 deletion PC/layout/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@
from .support.nuspec import *

TEST_PYDS_ONLY = FileStemSet("xxlimited", "xxlimited_35", "_ctypes_test", "_test*")
TEST_DLLS_ONLY = set()
TEST_DIRS_ONLY = FileNameSet("test", "tests")

IDLE_DIRS_ONLY = FileNameSet("idlelib")

TCLTK_PYDS_ONLY = FileStemSet("tcl*", "tk*", "_tkinter", "zlib1")
TCLTK_PYDS_ONLY = FileStemSet("_tkinter")
TCLTK_DLLS_ONLY = FileStemSet("tcl*", "tk*", "zlib1")
TCLTK_DIRS_ONLY = FileNameSet("tkinter", "turtledemo")
TCLTK_FILES_ONLY = FileNameSet("turtle.py")

Expand Down Expand Up @@ -226,6 +228,10 @@ def in_build(f, dest="", new_name=None, no_lib=False):
continue
if src in EXCLUDE_FROM_DLLS:
continue
if src in TEST_DLLS_ONLY and not ns.include_tests:
continue
if src in TCLTK_DLLS_ONLY and not ns.include_tcltk:
continue
yield from in_build(src.name, dest=dest, no_lib=True)

if ns.zip_lib:
Expand Down

0 comments on commit 88e0131

Please sign in to comment.