summaryrefslogtreecommitdiffstats
path: root/Tools/msi/make_zip.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-12-11 22:35:07 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2016-12-11 22:35:07 (GMT)
commite711cc0f222ce22bad0ee84b3d27eccc2ad8b63d (patch)
tree9f002516354af79263cdc00625118558692ae2a7 /Tools/msi/make_zip.py
parent8b58339eb2939da4df822f7ea457b44e120fad45 (diff)
downloadcpython-e711cc0f222ce22bad0ee84b3d27eccc2ad8b63d.zip
cpython-e711cc0f222ce22bad0ee84b3d27eccc2ad8b63d.tar.gz
cpython-e711cc0f222ce22bad0ee84b3d27eccc2ad8b63d.tar.bz2
Issue #28783: Replaces bdist_wininst in nuget packages with stub
Diffstat (limited to 'Tools/msi/make_zip.py')
-rw-r--r--Tools/msi/make_zip.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/Tools/msi/make_zip.py b/Tools/msi/make_zip.py
index 460cd5b..9db96cb 100644
--- a/Tools/msi/make_zip.py
+++ b/Tools/msi/make_zip.py
@@ -75,10 +75,6 @@ def include_in_lib(p):
if name in EXCLUDE_FILE_FROM_LIBRARY:
return False
- # Special code is included below to patch this file back in
- if [d.lower() for d in p.parts[-3:]] == ['distutils', 'command', '__init__.py']:
- return False
-
suffix = p.suffix.lower()
return suffix not in {'.pyc', '.pyo', '.exe'}
@@ -215,8 +211,8 @@ def main():
extra_files = []
if s == 'Lib' and p == '**/*':
extra_files.append((
- source / 'tools' / 'msi' / 'distutils.command.__init__.py',
- Path('distutils') / 'command' / '__init__.py'
+ source / 'tools' / 'msi' / 'distutils.command.bdist_wininst.py',
+ Path('distutils') / 'command' / 'bdist_wininst.py'
))
copied = copy_to_layout(temp / t.rstrip('/'), chain(files, extra_files))
print('Copied {} files'.format(copied))