changeset: 104431:e050ed5da06d branch: 3.6 parent: 104428:004d1809db41 user: Steve Dower date: Sun Oct 09 20:18:52 2016 -0700 files: Misc/NEWS PCbuild/pyproject.props Tools/msi/common.wxs Tools/msi/lib/lib.wixproj Tools/msi/lib/lib.wxs Tools/msi/lib/lib_files.wxs Tools/msi/msi.props Tools/msi/msi.targets Tools/msi/tools/tools.wixproj Tools/msi/tools/tools.wxs Tools/msi/tools/tools_files.wxs description: Issue #28402: Adds signed catalog files for stdlib on Windows. diff -r 004d1809db41 -r e050ed5da06d Misc/NEWS --- a/Misc/NEWS Mon Oct 10 00:38:21 2016 +0000 +++ b/Misc/NEWS Sun Oct 09 20:18:52 2016 -0700 @@ -226,6 +226,8 @@ Windows ------- +- Issue #28402: Adds signed catalog files for stdlib on Windows. + - Issue #28333: Enables Unicode for ps1/ps2 and input() prompts. (Patch by Eryk Sun) diff -r 004d1809db41 -r e050ed5da06d PCbuild/pyproject.props --- a/PCbuild/pyproject.props Mon Oct 10 00:38:21 2016 +0000 +++ b/PCbuild/pyproject.props Sun Oct 09 20:18:52 2016 -0700 @@ -147,11 +147,13 @@ Targets="CleanAll" /> - - $(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot81)\bin\x86\signtool.exe - $(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot)\bin\x86\signtool.exe - $(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1A@InstallationFolder)\Bin\signtool.exe - <_SignCommand Condition="Exists($(SignToolPath))">"$(SignToolPath)" sign /q /n "$(SigningCertificate)" /fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d "Python $(PythonVersion)" + + $(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot10)\bin\x86 + $(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot81)\bin\x86 + $(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot)\bin\x86 + $(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1A@InstallationFolder)\Bin\ + <_SignCommand Condition="Exists($(SdkBinPath)) and '$(SigningCertificate)' != '' and $(SupportSigning)">"$(SdkBinPath)\signtool.exe" sign /q /n "$(SigningCertificate)" /fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d "Python $(PythonVersion)" + <_MakeCatCommand Condition="Exists($(SdkBinPath))">"$(SdkBinPath)\makecat.exe" diff -r 004d1809db41 -r e050ed5da06d Tools/msi/common.wxs --- a/Tools/msi/common.wxs Mon Oct 10 00:38:21 2016 +0000 +++ b/Tools/msi/common.wxs Sun Oct 09 20:18:52 2016 -0700 @@ -63,7 +63,9 @@ - + + + diff -r 004d1809db41 -r e050ed5da06d Tools/msi/lib/lib.wixproj --- a/Tools/msi/lib/lib.wixproj Mon Oct 10 00:38:21 2016 +0000 +++ b/Tools/msi/lib/lib.wixproj Sun Oct 09 20:18:52 2016 -0700 @@ -27,6 +27,7 @@ $(PySourcePath)Lib Lib\ lib_py + true diff -r 004d1809db41 -r e050ed5da06d Tools/msi/lib/lib.wxs --- a/Tools/msi/lib/lib.wxs Mon Oct 10 00:38:21 2016 +0000 +++ b/Tools/msi/lib/lib.wxs Sun Oct 09 20:18:52 2016 -0700 @@ -11,6 +11,7 @@ + diff -r 004d1809db41 -r e050ed5da06d Tools/msi/lib/lib_files.wxs --- a/Tools/msi/lib/lib_files.wxs Mon Oct 10 00:38:21 2016 +0000 +++ b/Tools/msi/lib/lib_files.wxs Sun Oct 09 20:18:52 2016 -0700 @@ -70,4 +70,11 @@ + + + + + + + diff -r 004d1809db41 -r e050ed5da06d Tools/msi/msi.props --- a/Tools/msi/msi.props Mon Oct 10 00:38:21 2016 +0000 +++ b/Tools/msi/msi.props Sun Oct 09 20:18:52 2016 -0700 @@ -11,6 +11,7 @@ Release x86 perUser + <_MakeCatCommand Condition="'$(_MakeCatCommand)' == ''">makecat @@ -103,6 +104,7 @@ generated_filelist + false false diff -r 004d1809db41 -r e050ed5da06d Tools/msi/msi.targets --- a/Tools/msi/msi.targets Mon Oct 10 00:38:21 2016 +0000 +++ b/Tools/msi/msi.targets Sun Oct 09 20:18:52 2016 -0700 @@ -12,8 +12,10 @@ <_Source>%(Source)$([msbuild]::MakeRelative(%(SourceBase), %(FullPath))) <_Target>%(Target_)$([msbuild]::MakeRelative(%(TargetBase), %(FullPath))) + + <_CatalogFiles Include="@(InstallFiles)" Condition="%(InstallFiles.IncludeInCat) and ''!=$([System.IO.File]::ReadAllText(%(InstallFiles.FullPath)))" /> - + @@ -24,6 +26,35 @@ + + + <_CatFileSourceTarget>$(IntermediateOutputPath)$(MSBuildProjectName).cdf + <_CatFileTarget>$(IntermediateOutputPath)python_$(MSBuildProjectName).cat + <_CatFile>[CatalogHeader] +Name=$([System.IO.Path]::GetFileName($(_CatFileTarget))) +ResultDir=$([System.IO.Path]::GetDirectoryName($(_CatFileTarget))) +PublicVersion=1 +CatalogVersion=2 +HashAlgorithms=SHA256 +PageHashes=false +EncodingType= + +[CatalogFiles] +@(_CatalogFiles->'<HASH>%(Filename)%(Extension)=%(FullPath)',' +') + + + + + + + + + + + + <_Content>$([System.IO.File]::ReadAllText(%(WxlTemplate.FullPath)).Replace(`{{ShortVersion}}`, `$(MajorVersionNumber).$(MinorVersionNumber)$(PyTestExt)`).Replace(`{{LongVersion}}`, `$(PythonVersion)$(PyTestExt)`).Replace(`{{Bitness}}`, `$(Bitness)`)) diff -r 004d1809db41 -r e050ed5da06d Tools/msi/tools/tools.wixproj --- a/Tools/msi/tools/tools.wixproj Mon Oct 10 00:38:21 2016 +0000 +++ b/Tools/msi/tools/tools.wixproj Sun Oct 09 20:18:52 2016 -0700 @@ -36,6 +36,7 @@ $(PySourcePath) tools_py + true diff -r 004d1809db41 -r e050ed5da06d Tools/msi/tools/tools.wxs --- a/Tools/msi/tools/tools.wxs Mon Oct 10 00:38:21 2016 +0000 +++ b/Tools/msi/tools/tools.wxs Sun Oct 09 20:18:52 2016 -0700 @@ -9,6 +9,7 @@ + diff -r 004d1809db41 -r e050ed5da06d Tools/msi/tools/tools_files.wxs --- a/Tools/msi/tools/tools_files.wxs Mon Oct 10 00:38:21 2016 +0000 +++ b/Tools/msi/tools/tools_files.wxs Sun Oct 09 20:18:52 2016 -0700 @@ -13,4 +13,11 @@ + + + + + + +