]> granicus.if.org Git - python/commitdiff
Fixes rebuild of strings for Windows installer.
authorSteve Dower <steve.dower@microsoft.com>
Sun, 5 Jul 2015 14:24:17 +0000 (07:24 -0700)
committerSteve Dower <steve.dower@microsoft.com>
Sun, 5 Jul 2015 14:24:17 +0000 (07:24 -0700)
Tools/msi/msi.targets

index 34b8747fff4023f919e4196c3e1fda0616681cb3..2431dc2f2f9611d10c3518297728afd7a8f5060e 100644 (file)
@@ -24,7 +24,7 @@
         </ItemGroup>
     </Target>
 
-    <Target Name="_TransformWxlTemplates" AfterTargets="PrepareForBuild">
+    <Target Name="_TransformWxlTemplates" AfterTargets="PrepareForBuild" Inputs="@(WxlTemplate);$(PySourcePath)include\patchlevel.h" Outputs="$(IntermediateOutputPath)%(Filename).wxl">
         <PropertyGroup>
             <_Content>$([System.IO.File]::ReadAllText(%(WxlTemplate.FullPath)).Replace(`{{ShortVersion}}`, `$(MajorVersionNumber).$(MinorVersionNumber)`).Replace(`{{LongVersion}}`, `$(PythonVersion)`).Replace(`{{Bitness}}`, `$(Bitness)`))</_Content>
             <_ExistingContent Condition="Exists('$(IntermediateOutputPath)%(WxlTemplate.Filename).wxl')">$([System.IO.File]::ReadAllText($(IntermediateOutputPath)%(WxlTemplate.Filename).wxl))</_ExistingContent>