Skip to content

Commit f51fd84

Browse files
authored
gh-126074: Removes unnecessary DLLs from embeddable package (GH-126143)
1 parent ff83499 commit f51fd84

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Removed unnecessary DLLs from Windows embeddable package

PC/layout/main.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@
3131
from .support.nuspec import *
3232

3333
TEST_PYDS_ONLY = FileStemSet("xxlimited", "xxlimited_35", "_ctypes_test", "_test*")
34+
TEST_DLLS_ONLY = set()
3435
TEST_DIRS_ONLY = FileNameSet("test", "tests")
3536

3637
IDLE_DIRS_ONLY = FileNameSet("idlelib")
3738

38-
TCLTK_PYDS_ONLY = FileStemSet("tcl*", "tk*", "_tkinter", "zlib1")
39+
TCLTK_PYDS_ONLY = FileStemSet("_tkinter")
40+
TCLTK_DLLS_ONLY = FileStemSet("tcl*", "tk*", "zlib1")
3941
TCLTK_DIRS_ONLY = FileNameSet("tkinter", "turtledemo")
4042
TCLTK_FILES_ONLY = FileNameSet("turtle.py")
4143

@@ -226,6 +228,10 @@ def in_build(f, dest="", new_name=None, no_lib=False):
226228
continue
227229
if src in EXCLUDE_FROM_DLLS:
228230
continue
231+
if src in TEST_DLLS_ONLY and not ns.include_tests:
232+
continue
233+
if src in TCLTK_DLLS_ONLY and not ns.include_tcltk:
234+
continue
229235
yield from in_build(src.name, dest=dest, no_lib=True)
230236

231237
if ns.zip_lib:

0 commit comments

Comments
 (0)