mirror of
https://github.com/python/cpython.git
synced 2025-09-03 15:31:08 +00:00
gh-126074: Removes unnecessary DLLs from embeddable package (GH-126143)
This commit is contained in:
parent
ff8349979c
commit
f51fd84034
2 changed files with 8 additions and 1 deletions
|
@ -0,0 +1 @@
|
||||||
|
Removed unnecessary DLLs from Windows embeddable package
|
|
@ -31,11 +31,13 @@ from .support.props import *
|
||||||
from .support.nuspec import *
|
from .support.nuspec import *
|
||||||
|
|
||||||
TEST_PYDS_ONLY = FileStemSet("xxlimited", "xxlimited_35", "_ctypes_test", "_test*")
|
TEST_PYDS_ONLY = FileStemSet("xxlimited", "xxlimited_35", "_ctypes_test", "_test*")
|
||||||
|
TEST_DLLS_ONLY = set()
|
||||||
TEST_DIRS_ONLY = FileNameSet("test", "tests")
|
TEST_DIRS_ONLY = FileNameSet("test", "tests")
|
||||||
|
|
||||||
IDLE_DIRS_ONLY = FileNameSet("idlelib")
|
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_DIRS_ONLY = FileNameSet("tkinter", "turtledemo")
|
||||||
TCLTK_FILES_ONLY = FileNameSet("turtle.py")
|
TCLTK_FILES_ONLY = FileNameSet("turtle.py")
|
||||||
|
|
||||||
|
@ -226,6 +228,10 @@ def get_layout(ns):
|
||||||
continue
|
continue
|
||||||
if src in EXCLUDE_FROM_DLLS:
|
if src in EXCLUDE_FROM_DLLS:
|
||||||
continue
|
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)
|
yield from in_build(src.name, dest=dest, no_lib=True)
|
||||||
|
|
||||||
if ns.zip_lib:
|
if ns.zip_lib:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue