diff options
author | Steve Dower <steve.dower@microsoft.com> | 2016-12-11 14:48:32 -0800 |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2016-12-11 14:48:32 -0800 |
commit | 1e85671abb4970d3b91441a44d556db77a931982 (patch) | |
tree | b46496660796567efe43f74beb5adcbc38e4c896 /Tools/msi/make_zip.py | |
parent | 59b9eaed2a82da60cfbe3fddef196d654e6289eb (diff) | |
download | cpython-1e85671abb4970d3b91441a44d556db77a931982.tar.gz |
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.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Tools/msi/make_zip.py b/Tools/msi/make_zip.py index 09f6fe328f..8dbe83e4f4 100644 --- a/Tools/msi/make_zip.py +++ b/Tools/msi/make_zip.py @@ -79,10 +79,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'} @@ -218,8 +214,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)) |