diff options
author | Steve Dower <steve.dower@microsoft.com> | 2016-12-19 22:31:27 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2016-12-19 22:31:27 (GMT) |
commit | a535d68ba7c9089f85ddfbf37215fa7612a16993 (patch) | |
tree | 8b7c070974e9016403e4db88d1fafdaf7e68da24 /Tools/nuget/make_zip.py | |
parent | f6447e006587fcb632b80ca7e5888cefc1a26d58 (diff) | |
download | cpython-a535d68ba7c9089f85ddfbf37215fa7612a16993.zip cpython-a535d68ba7c9089f85ddfbf37215fa7612a16993.tar.gz cpython-a535d68ba7c9089f85ddfbf37215fa7612a16993.tar.bz2 |
Fixes the 2.7 nuget packages to include a shim bdist_wininst
Diffstat (limited to 'Tools/nuget/make_zip.py')
-rw-r--r-- | Tools/nuget/make_zip.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Tools/nuget/make_zip.py b/Tools/nuget/make_zip.py index af64323c..20fadf2 100644 --- a/Tools/nuget/make_zip.py +++ b/Tools/nuget/make_zip.py @@ -9,6 +9,7 @@ import stat import os import tempfile +from itertools import chain from pathlib import Path from zipfile import ZipFile, ZIP_DEFLATED import subprocess @@ -203,8 +204,15 @@ def main(): try: for t, s, p, c in layout: - s = source / s.replace("$arch", arch) - copied = copy_to_layout(temp / t.rstrip('/'), rglob(s, p, c)) + fs = source / s.replace("$arch", arch) + files = rglob(fs, p, c) + extra_files = [] + if s == 'Lib' and p == '**/*': + extra_files.append(( + source / 'tools' / 'nuget' / '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)) if out: |