diff options
author | Steve Dower <steve.dower@microsoft.com> | 2017-09-06 17:01:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-06 17:01:38 (GMT) |
commit | 5fcd5e64eec9ed67613b8fe7356fb8288151ceba (patch) | |
tree | 7f439fe482a133d7877977a255d518a5ee846024 /Tools/msi/exe | |
parent | bcaac8188b1a1e67d2cc155609f0f883f036df33 (diff) | |
download | cpython-5fcd5e64eec9ed67613b8fe7356fb8288151ceba.zip cpython-5fcd5e64eec9ed67613b8fe7356fb8288151ceba.tar.gz cpython-5fcd5e64eec9ed67613b8fe7356fb8288151ceba.tar.bz2 |
bpo-31340: Change to building with MSVC v141 (included with Visual Studio 2017) (#3311)
Diffstat (limited to 'Tools/msi/exe')
-rw-r--r-- | Tools/msi/exe/exe.wixproj | 24 | ||||
-rw-r--r-- | Tools/msi/exe/exe_files.wxs | 2 |
2 files changed, 24 insertions, 2 deletions
diff --git a/Tools/msi/exe/exe.wixproj b/Tools/msi/exe/exe.wixproj index 50f6f88..8eaf494 100644 --- a/Tools/msi/exe/exe.wixproj +++ b/Tools/msi/exe/exe.wixproj @@ -39,6 +39,28 @@ Overwrite="true" Lines="@(_LicenseFiles->'%(Content)')" /> </Target> - + + <Target Name="_CopyMiscNews" AfterTargets="PrepareForBuild" Condition="Exists('$(PySourcePath)Misc\NEWS')"> + <Copy SourceFiles="$(PySourcePath)Misc\NEWS" DestinationFiles="$(BuildPath)NEWS.txt" /> + </Target> + + <Target Name="_MergeMiscNewsWithBlurb" AfterTargets="PrepareForBuild" Condition="$(Blurb) != '' and !Exists('$(PySourcePath)Misc\NEWS')"> + <Exec Command="$(Blurb) merge -f "$(BuildPath)NEWS.txt"" WorkingDirectory="$(PCBuild)" /> + </Target> + + <Target Name="_MergeMiscNewsWithPython" AfterTargets="PrepareForBuild" Condition="$(Blurb) == '' and !Exists('$(PySourcePath)Misc\NEWS')"> + <ItemGroup> + <HostPython Include="$(ExternalsDir)python*\tools\python.exe" /> + <HostPython Include="@(HostPython)" Condition="Exists(%(FullPath))" /> + <HostPython Include="py" Condition="@(HostPython) == ''" /> + </ItemGroup> + <PropertyGroup> + <HostPython>@(HostPython)</HostPython> + <HostPython Condition="$(HostPython.Contains(';'))">$(HostPython.Remove($(HostPython.IndexOf(';'))))</HostPython> + </PropertyGroup> + <Exec Command=""$(HostPython)" -m pip install -U blurb" WorkingDirectory="$(PCBuild)" /> + <Exec Command=""$(HostPython)" -m blurb merge -f "$(BuildPath)NEWS.txt"" WorkingDirectory="$(PCBuild)" /> + </Target> + <Import Project="..\msi.targets" /> </Project>
\ No newline at end of file diff --git a/Tools/msi/exe/exe_files.wxs b/Tools/msi/exe/exe_files.wxs index e675c21..394b4de 100644 --- a/Tools/msi/exe/exe_files.wxs +++ b/Tools/msi/exe/exe_files.wxs @@ -6,7 +6,7 @@ <File Name="LICENSE.txt" Source="LICENSE" KeyPath="yes" /> </Component> <Component Id="NEWS.txt" Directory="InstallDirectory" Guid="*"> - <File Name="NEWS.txt" Source="!(bindpath.src)Misc\NEWS" KeyPath="yes" /> + <File Name="NEWS.txt" KeyPath="yes" /> </Component> </ComponentGroup> </Fragment> |