From 05338267ab75c0a0948049280da0224ecc2fb7dc Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Sun, 24 Jul 2016 18:04:29 -0700 Subject: [PATCH] Issue #27610: Adds PEP 514 metadata to Windows installer --- Misc/NEWS | 2 ++ Tools/msi/common.wxs | 4 ++++ Tools/msi/common_en-US.wxl_template | 1 + Tools/msi/exe/exe.wixproj | 1 + Tools/msi/exe/exe.wxs | 2 +- Tools/msi/exe/exe_d.wixproj | 1 + Tools/msi/exe/exe_en-US.wxl_template | 1 + Tools/msi/exe/exe_files.wxs | 3 +++ Tools/msi/exe/exe_pdb.wixproj | 1 + Tools/msi/msi.props | 9 +++++++++ 10 files changed, 24 insertions(+), 1 deletion(-) diff --git a/Misc/NEWS b/Misc/NEWS index bb553a37697..f43bb68bb30 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -61,6 +61,8 @@ Tests Windows ------- +- Issue #27610: Adds PEP 514 metadata to Windows installer + - Issue #27469: Adds a shell extension to the launcher so that drag and drop works correctly. diff --git a/Tools/msi/common.wxs b/Tools/msi/common.wxs index 4efad6562a3..dd41ce88fbb 100644 --- a/Tools/msi/common.wxs +++ b/Tools/msi/common.wxs @@ -1,5 +1,9 @@ + + + + diff --git a/Tools/msi/common_en-US.wxl_template b/Tools/msi/common_en-US.wxl_template index 8d035268820..c95c271c27a 100644 --- a/Tools/msi/common_en-US.wxl_template +++ b/Tools/msi/common_en-US.wxl_template @@ -14,4 +14,5 @@ A newer version of !(loc.ProductName) is already installed. An incorrect version of a prerequisite package is installed. Please uninstall any other versions of !(loc.ProductName) and try installing this again. The TARGETDIR variable must be provided when invoking this installer. + http://www.python.org/ diff --git a/Tools/msi/exe/exe.wixproj b/Tools/msi/exe/exe.wixproj index d26a603268b..24df0f5f7a3 100644 --- a/Tools/msi/exe/exe.wixproj +++ b/Tools/msi/exe/exe.wixproj @@ -14,6 +14,7 @@ + diff --git a/Tools/msi/exe/exe.wxs b/Tools/msi/exe/exe.wxs index 154cee5c479..03d43c60324 100644 --- a/Tools/msi/exe/exe.wxs +++ b/Tools/msi/exe/exe.wxs @@ -9,6 +9,7 @@ + @@ -24,7 +25,6 @@ WorkingDirectory="InstallDirectory" /> - diff --git a/Tools/msi/exe/exe_d.wixproj b/Tools/msi/exe/exe_d.wixproj index 27545caf7d1..cf085bed4dd 100644 --- a/Tools/msi/exe/exe_d.wixproj +++ b/Tools/msi/exe/exe_d.wixproj @@ -10,6 +10,7 @@ + diff --git a/Tools/msi/exe/exe_en-US.wxl_template b/Tools/msi/exe/exe_en-US.wxl_template index 577fbe51a52..1f9e290394b 100644 --- a/Tools/msi/exe/exe_en-US.wxl_template +++ b/Tools/msi/exe/exe_en-US.wxl_template @@ -4,4 +4,5 @@ executable Python {{ShortVersion}} ({{Bitness}}) Launches the !(loc.ProductName) interpreter. + http://www.python.org/ diff --git a/Tools/msi/exe/exe_files.wxs b/Tools/msi/exe/exe_files.wxs index 9e47b5d9809..c157f40d329 100644 --- a/Tools/msi/exe/exe_files.wxs +++ b/Tools/msi/exe/exe_files.wxs @@ -28,6 +28,9 @@ + + + diff --git a/Tools/msi/exe/exe_pdb.wixproj b/Tools/msi/exe/exe_pdb.wixproj index 4f4c8699260..bf1213e9d49 100644 --- a/Tools/msi/exe/exe_pdb.wixproj +++ b/Tools/msi/exe/exe_pdb.wixproj @@ -10,6 +10,7 @@ + diff --git a/Tools/msi/msi.props b/Tools/msi/msi.props index 0cf7c7779f9..745fc541175 100644 --- a/Tools/msi/msi.props +++ b/Tools/msi/msi.props @@ -69,6 +69,8 @@ 32-bit 64-bit + 32bit + 64bit $(DefineConstants); Version=$(InstallerVersion); @@ -79,6 +81,7 @@ UpgradeMinimumVersion=$(MajorVersionNumber).$(MinorVersionNumber).0.0; NextMajorVersionNumber=$(MajorVersionNumber).$([msbuild]::Add($(MinorVersionNumber), 1)).0.0; Bitness=$(Bitness); + PlatformArchitecture=$(PlatformArchitecture); PyDebugExt=$(PyDebugExt); PyArchExt=$(PyArchExt); PyTestExt=$(PyTestExt); @@ -155,6 +158,12 @@ <_Uuid Include="RemoveLib2to3PickleComponentGuid"> lib2to3/pickles + <_Uuid Include="CommonPythonRegComponentGuid"> + registry + + <_Uuid Include="PythonRegComponentGuid"> + registry/$(OutputName) +