comparison contrib/automation/hgautomation/windows.py @ 44769:9ade217b550d stable

packaging: add -python2 to Windows installer filenames We just taught the Windows installers to produce Python 3 variants built with PyOxidizer. Our plan is to publish both Python 2 and Python 3 versions of the installers for Mercurial 5.4. This commit teaches the Inno and WiX installers to add an optional string suffix to the installer name. On Python 2, that suffix is "-python2." We reserve the existing name for the Python 3 installers, which we want to make the default. Differential Revision: https://phab.mercurial-scm.org/D8479
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 23 Apr 2020 18:48:36 -0700
parents 9d441f820c8b
children 47609da15379
comparison
equal deleted inserted replaced
44768:9d441f820c8b 44769:9ade217b550d
106 WHEEL_FILENAME_PYTHON37_X86 = 'mercurial-{version}-cp37-cp37m-win32.whl' 106 WHEEL_FILENAME_PYTHON37_X86 = 'mercurial-{version}-cp37-cp37m-win32.whl'
107 WHEEL_FILENAME_PYTHON37_X64 = 'mercurial-{version}-cp37-cp37m-win_amd64.whl' 107 WHEEL_FILENAME_PYTHON37_X64 = 'mercurial-{version}-cp37-cp37m-win_amd64.whl'
108 WHEEL_FILENAME_PYTHON38_X86 = 'mercurial-{version}-cp38-cp38-win32.whl' 108 WHEEL_FILENAME_PYTHON38_X86 = 'mercurial-{version}-cp38-cp38-win32.whl'
109 WHEEL_FILENAME_PYTHON38_X64 = 'mercurial-{version}-cp38-cp38-win_amd64.whl' 109 WHEEL_FILENAME_PYTHON38_X64 = 'mercurial-{version}-cp38-cp38-win_amd64.whl'
110 110
111 X86_EXE_FILENAME = 'Mercurial-{version}.exe' 111 X86_EXE_FILENAME = 'Mercurial-{version}-x86-python2.exe'
112 X64_EXE_FILENAME = 'Mercurial-{version}-x64.exe' 112 X64_EXE_FILENAME = 'Mercurial-{version}-x64-python2.exe'
113 X86_MSI_FILENAME = 'mercurial-{version}-x86.msi' 113 X86_MSI_FILENAME = 'mercurial-{version}-x86-python2.msi'
114 X64_MSI_FILENAME = 'mercurial-{version}-x64.msi' 114 X64_MSI_FILENAME = 'mercurial-{version}-x64-python2.msi'
115 115
116 MERCURIAL_SCM_BASE_URL = 'https://mercurial-scm.org/release/windows' 116 MERCURIAL_SCM_BASE_URL = 'https://mercurial-scm.org/release/windows'
117 117
118 X86_USER_AGENT_PATTERN = '.*Windows.*' 118 X86_USER_AGENT_PATTERN = '.*Windows.*'
119 X64_USER_AGENT_PATTERN = '.*Windows.*(WOW|x)64.*' 119 X64_USER_AGENT_PATTERN = '.*Windows.*(WOW|x)64.*'