diff -r 234882d17814 -r 9d441f820c8b contrib/automation/hgautomation/cli.py --- a/contrib/automation/hgautomation/cli.py Mon Apr 20 17:42:50 2020 -0700 +++ b/contrib/automation/hgautomation/cli.py Thu Apr 23 17:24:37 2020 -0700 @@ -99,7 +99,12 @@ def build_windows_wheel( - hga: HGAutomation, aws_region, arch, revision, base_image_name + hga: HGAutomation, + aws_region, + python_version, + arch, + revision, + base_image_name, ): c = hga.aws_connection(aws_region) image = aws.ensure_windows_dev_ami(c, base_image_name=base_image_name) @@ -110,8 +115,11 @@ windows.synchronize_hg(SOURCE_ROOT, revision, instance) - for a in arch: - windows.build_wheel(instance.winrm_client, a, DIST_PATH) + for py_version in python_version: + for a in arch: + windows.build_wheel( + instance.winrm_client, py_version, a, DIST_PATH + ) def build_all_windows_packages( @@ -128,10 +136,18 @@ windows.synchronize_hg(SOURCE_ROOT, revision, instance) + for py_version in ("2.7", "3.7", "3.8"): + for arch in ("x86", "x64"): + windows.purge_hg(winrm_client) + windows.build_wheel( + winrm_client, + python_version=py_version, + arch=arch, + dest_path=DIST_PATH, + ) + for arch in ('x86', 'x64'): windows.purge_hg(winrm_client) - windows.build_wheel(winrm_client, arch, DIST_PATH) - windows.purge_hg(winrm_client) windows.build_inno_installer( winrm_client, arch, DIST_PATH, version=version ) @@ -316,6 +332,13 @@ 'build-windows-wheel', help='Build Windows wheel(s)', ) sp.add_argument( + '--python-version', + help='Python version to build for', + choices={'2.7', '3.7', '3.8'}, + nargs='*', + default=['3.8'], + ) + sp.add_argument( '--arch', help='Architecture to build for', choices={'x86', 'x64'},