File tree Expand file tree Collapse file tree
.azure-pipelines/windows-release Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,26 +94,30 @@ steps:
9494 Py_OutDir: $(Build.BinariesDirectory)
9595
9696 - script : |
97- %MSBUILD% Tools\msi\bundle\releaselocal.wixproj /t:Rebuild /p:RebuildAll=true /p:BuildForRelease=true
98- %MSBUILD% Tools\msi\bundle\releaseweb.wixproj /t:Rebuild /p:RebuildAll=false /p:BuildForRelease=true
97+ %MSBUILD% Tools\msi\bundle\releaselocal.wixproj /t:Rebuild /p:RebuildAll=true
98+ %MSBUILD% Tools\msi\bundle\releaseweb.wixproj /t:Rebuild /p:RebuildAll=false
9999 displayName: 'Build win32 installer'
100100 env:
101101 Platform: x86
102102 Py_OutDir: $(Build.BinariesDirectory)
103103 PYTHON: $(Build.BinariesDirectory)\win32\python.exe
104104 PYTHONHOME: $(Build.SourcesDirectory)
105105 TclTkLibraryDir: $(Build.BinariesDirectory)\tcltk_lib_win32
106+ BuildForRelease: true
107+ SuppressMinGWLib: true
106108
107109 - script : |
108- %MSBUILD% Tools\msi\bundle\releaselocal.wixproj /t:Rebuild /p:RebuildAll=true /p:BuildForRelease=true
109- %MSBUILD% Tools\msi\bundle\releaseweb.wixproj /t:Rebuild /p:RebuildAll=false /p:BuildForRelease=true
110+ %MSBUILD% Tools\msi\bundle\releaselocal.wixproj /t:Rebuild /p:RebuildAll=true
111+ %MSBUILD% Tools\msi\bundle\releaseweb.wixproj /t:Rebuild /p:RebuildAll=false
110112 displayName: 'Build amd64 installer'
111113 env:
112114 Platform: x64
113115 Py_OutDir: $(Build.BinariesDirectory)
114116 PYTHON: $(Build.BinariesDirectory)\amd64\python.exe
115117 PYTHONHOME: $(Build.SourcesDirectory)
116118 TclTkLibraryDir: $(Build.BinariesDirectory)\tcltk_lib_amd64
119+ BuildForRelease: true
120+ SuppressMinGWLib: true
117121
118122 - task : CopyFiles@2
119123 displayName : ' Assemble artifact: msi (1/2)'
Original file line number Diff line number Diff line change 9595 displayName : Python PGO build
9696 condition : and(succeeded(), eq(variables['DoPGO'], 'true'))
9797
98+ # Allow up to five hours for PGO
99+ timeoutInMinutes : 300
100+
98101 pool :
99102 name : ' Windows Release'
100103
Original file line number Diff line number Diff line change 3939 - powershell : >
4040 $(LayoutCmd)
4141 --copy "$(Build.ArtifactStagingDirectory)\layout"
42- --zip "$(Build.ArtifactStagingDirectory)\embed\$(VersionText)-embed-$(Name).zip"
42+ --zip "$(Build.ArtifactStagingDirectory)\embed\python- $(VersionText)-embed-$(Name).zip"
4343 --preset-embed
4444 displayName: 'Generate embeddable layout'
4545
Original file line number Diff line number Diff line change 2626 downloadPath : $(Build.BinariesDirectory)
2727
2828 - powershell : |
29- Expand-Archive -Path "$(Build.BinariesDirectory)\embed\embed-$(Name).zip" -DestinationPath "$(Build.BinariesDirectory)\Python"
29+ $p = gi "$(Build.BinariesDirectory)\embed\python*embed-$(Name).zip"
30+ Expand-Archive -Path $p -DestinationPath "$(Build.BinariesDirectory)\Python"
3031 $p = gi "$(Build.BinariesDirectory)\Python\python.exe"
3132 Write-Host "##vso[task.prependpath]$(Split-Path -Parent $p)"
3233 displayName: 'Install Python and add to PATH'
Original file line number Diff line number Diff line change 88 </PropertyGroup >
99 <Import Project =" ..\msi.props" />
1010 <PropertyGroup >
11- <DefineConstants Condition =" $(BuildForRelease)" >
11+ <DefineConstants Condition =" $(BuildForRelease) and $(SuppressMinGWLib) == '' " >
1212 $(DefineConstants);
1313 IncludeMinGWLib=1;
1414 </DefineConstants >
3535 Inputs =" $(BuildPath)$(PyDllName).dll"
3636 Outputs =" $(BuildPath)lib$(PyDllName).a"
3737 AfterTargets =" PrepareForBuild"
38- Condition =" $(BuildForRelease)" >
38+ Condition =" $(BuildForRelease) and $(SuppressMinGWLib) == '' " >
3939 <!-- Build libpython##.a as part of this project. This requires gendef and dlltool on the path. -->
4040 <PropertyGroup >
4141 <_DllToolOpts >-m i386 --as-flags=--32</_DllToolOpts >
You can’t perform that action at this time.
0 commit comments