diff options
author | Steve Dower <steve.dower@microsoft.com> | 2015-10-01 22:18:53 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2015-10-01 22:18:53 (GMT) |
commit | c4b7600b903aca2fec434801d8d185bd2df65076 (patch) | |
tree | 90979e760b88c97ad7e76f93d9353841452ddd94 /Tools/msi/msi.props | |
parent | d5963e615dc3a6c8a7cdc02095ad6d647a79fa8d (diff) | |
download | cpython-c4b7600b903aca2fec434801d8d185bd2df65076.zip cpython-c4b7600b903aca2fec434801d8d185bd2df65076.tar.gz cpython-c4b7600b903aca2fec434801d8d185bd2df65076.tar.bz2 |
Improves support for building unofficial versions of the Windows installer.
Diffstat (limited to 'Tools/msi/msi.props')
-rw-r--r-- | Tools/msi/msi.props | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Tools/msi/msi.props b/Tools/msi/msi.props index cc52c7a..5b605e9 100644 --- a/Tools/msi/msi.props +++ b/Tools/msi/msi.props @@ -11,6 +11,12 @@ <Configuration Condition="'$(Configuration)' == ''">Release</Configuration> <Platform Condition="'$(Platform)' == ''">x86</Platform> <InstallScope Condition="'$(InstallScope)' != 'perMachine'">perUser</InstallScope> + </PropertyGroup> + + <Import Project="wix.props" /> + <Import Project="..\..\PCBuild\tcltk.props" /> + + <PropertyGroup> <!-- This URI is used to generate the various GUIDs used by the installer. Installers built with the same URI will upgrade each other or block @@ -21,17 +27,15 @@ that intend to bundle Python should rebuild these modules with their own URI to avoid conflicting with the official releases. - The official releases are built with http://www.python.org/. + The official releases use "http://www.python.org/$(ArchName)" This is not the same as the DownloadUrl property used in the bundle projects. --> - <ReleaseUri Condition="'$(ReleaseUri)' == ''">$(ComputerName)</ReleaseUri> + <ReleaseUri Condition="'$(ReleaseUri)' == ''">$(ComputerName)/$(ArchName)/</ReleaseUri> <ReleaseUri Condition="!$(ReleaseUri.EndsWith(`/`))">$(ReleaseUri)/</ReleaseUri> </PropertyGroup> - <Import Project="wix.props" /> - <Import Project="..\..\PCBuild\tcltk.props" /> <ItemGroup> <Compile Include="$(MSBuildThisFileDirectory)common.wxs" /> @@ -150,7 +154,7 @@ <Target Name="_GenerateGuids" AfterTargets="PrepareForBuild"> <PropertyGroup> <_Uuids>@(_Uuid->'("%(Identity)", "$(MajorVersionNumber).$(MinorVersionNumber)/%(Uri)")',',')</_Uuids> - <_GenerateCommand>import uuid; print('\n'.join('{}={}'.format(i, uuid.uuid5(uuid.UUID('c8d9733e-a70c-43ff-ab0c-e26456f11083'), '$(ReleaseUri)' + j)) for i,j in [$(_Uuids.Replace(`"`,`'`))]))</_GenerateCommand> + <_GenerateCommand>import uuid; print('\n'.join('{}={}'.format(i, uuid.uuid5(uuid.UUID('c8d9733e-a70c-43ff-ab0c-e26456f11083'), '$(ReleaseUri.Replace(`{arch}`, `$(ArchName)`))' + j)) for i,j in [$(_Uuids.Replace(`"`,`'`))]))</_GenerateCommand> </PropertyGroup> <Exec Command='"$(PythonExe)" -c "$(_GenerateCommand)" > "$(IntermediateOutputPath)$(OutputName)guids.txt"' |