mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-42802: Remove distutils bdist_wininst command (GH-24043)
The distutils bdist_wininst command deprecated in Python 3.8 has been removed. The distutils bidst_wheel command is now recommended to distribute binary packages on Windows. * Remove Lib/distutils/command/bdist_wininst.py * Remove PC/bdist_wininst/ project * Remove Lib/distutils/command/wininst-*.exe programs * Remove all references to bdist_wininst
This commit is contained in:
parent
68e1f259be
commit
0e2a0f72cc
40 changed files with 17 additions and 4057 deletions
|
@ -33,9 +33,6 @@ from .support.pip import *
|
|||
from .support.props import *
|
||||
from .support.nuspec import *
|
||||
|
||||
BDIST_WININST_FILES_ONLY = FileNameSet("wininst-*", "bdist_wininst.py")
|
||||
BDIST_WININST_STUB = "PC/layout/support/distutils.command.bdist_wininst.py"
|
||||
|
||||
TEST_PYDS_ONLY = FileStemSet("xxlimited", "xxlimited_35", "_ctypes_test", "_test*")
|
||||
TEST_DIRS_ONLY = FileNameSet("test", "tests")
|
||||
|
||||
|
@ -100,17 +97,11 @@ def get_lib_layout(ns):
|
|||
else:
|
||||
if f in TCLTK_FILES_ONLY:
|
||||
return ns.include_tcltk
|
||||
if f in BDIST_WININST_FILES_ONLY:
|
||||
return ns.include_bdist_wininst
|
||||
return True
|
||||
|
||||
for dest, src in rglob(ns.source / "Lib", "**/*", _c):
|
||||
yield dest, src
|
||||
|
||||
if not ns.include_bdist_wininst:
|
||||
src = ns.source / BDIST_WININST_STUB
|
||||
yield Path("distutils/command/bdist_wininst.py"), src
|
||||
|
||||
|
||||
def get_tcltk_lib(ns):
|
||||
if not ns.include_tcltk:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue