https://github.com/python/cpython/commit/f51fd84034e2cbf458321c25ba6fd085a39d6f6f
commit: f51fd84034e2cbf458321c25ba6fd085a39d6f6f
branch: main
author: Steve Dower <[email protected]>
committer: zooba <[email protected]>
date: 2024-11-05T20:43:52Z
summary:
gh-126074: Removes unnecessary DLLs from embeddable package (GH-126143)
files:
A Misc/NEWS.d/next/Windows/2024-10-29-20-09-52.gh-issue-126074.83ZzZs.rst
M PC/layout/main.py
diff --git
a/Misc/NEWS.d/next/Windows/2024-10-29-20-09-52.gh-issue-126074.83ZzZs.rst
b/Misc/NEWS.d/next/Windows/2024-10-29-20-09-52.gh-issue-126074.83ZzZs.rst
new file mode 100644
index 00000000000000..d4d06b090b5922
--- /dev/null
+++ b/Misc/NEWS.d/next/Windows/2024-10-29-20-09-52.gh-issue-126074.83ZzZs.rst
@@ -0,0 +1 @@
+Removed unnecessary DLLs from Windows embeddable package
diff --git a/PC/layout/main.py b/PC/layout/main.py
index 0350ed7af3f9b5..8bd435456c635a 100644
--- a/PC/layout/main.py
+++ b/PC/layout/main.py
@@ -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")
@@ -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:
_______________________________________________
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]