Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 03153dd

Browse files
authoredFeb 29, 2020
bpo-39789: Update Windows release build machines to VS 2019 (pythonGH-18695)
Also fixes some potential Nuget build issues.
1 parent c2f7eb2 commit 03153dd

18 files changed

+25
-24
lines changed
 

‎.azure-pipelines/windows-release/stage-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ jobs:
33
displayName: Docs build
44
pool:
55
name: 'Windows Release'
6-
#vmName: win2016-vs2017
6+
#vmImage: windows-2019
77

88
workspace:
99
clean: all
@@ -45,7 +45,7 @@ jobs:
4545
displayName: Python build
4646

4747
pool:
48-
vmName: win2016-vs2017
48+
vmImage: windows-2019
4949

5050
workspace:
5151
clean: all
@@ -91,7 +91,7 @@ jobs:
9191
condition: and(succeeded(), ne(variables['DoPGO'], 'true'))
9292

9393
pool:
94-
vmName: win2016-vs2017
94+
vmImage: windows-2019
9595

9696
workspace:
9797
clean: all
@@ -141,7 +141,7 @@ jobs:
141141
displayName: Publish Tcl/Tk Library
142142

143143
pool:
144-
vmName: windows-latest
144+
vmImage: windows-2019
145145

146146
workspace:
147147
clean: all

‎.azure-pipelines/windows-release/stage-layout-embed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
condition: and(succeeded(), eq(variables['DoEmbed'], 'true'))
55

66
pool:
7-
vmName: win2016-vs2017
7+
vmImage: windows-2019
88

99
workspace:
1010
clean: all

‎.azure-pipelines/windows-release/stage-layout-full.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
condition: and(succeeded(), eq(variables['DoLayout'], 'true'))
55

66
pool:
7-
vmName: win2016-vs2017
7+
vmImage: windows-2019
88

99
workspace:
1010
clean: all

‎.azure-pipelines/windows-release/stage-layout-msix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ jobs:
33
displayName: Make MSIX layout
44

55
pool:
6-
vmName: win2016-vs2017
6+
vmImage: windows-2019
77

88
workspace:
99
clean: all

‎.azure-pipelines/windows-release/stage-layout-nuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
condition: and(succeeded(), eq(variables['DoNuget'], 'true'))
55

66
pool:
7-
vmName: win2016-vs2017
7+
vmImage: windows-2019
88

99
workspace:
1010
clean: all

‎.azure-pipelines/windows-release/stage-msi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
condition: and(succeeded(), not(variables['SigningCertificate']))
55

66
pool:
7-
vmName: win2016-vs2017
7+
vmImage: windows-2019
88

99
variables:
1010
ReleaseUri: http://www.python.org/{arch}

‎.azure-pipelines/windows-release/stage-pack-msix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ jobs:
33
displayName: Pack MSIX bundles
44

55
pool:
6-
vmName: win2016-vs2017
6+
vmImage: windows-2019
77

88
workspace:
99
clean: all

‎.azure-pipelines/windows-release/stage-pack-nuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
condition: and(succeeded(), eq(variables['DoNuget'], 'true'))
55

66
pool:
7-
vmName: win2016-vs2017
7+
vmImage: windows-2019
88

99
workspace:
1010
clean: all

‎.azure-pipelines/windows-release/stage-publish-nugetorg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
condition: and(succeeded(), eq(variables['DoNuget'], 'true'))
55

66
pool:
7-
vmName: win2016-vs2017
7+
vmImage: windows-2019
88

99
workspace:
1010
clean: all

‎.azure-pipelines/windows-release/stage-publish-pythonorg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
condition: and(succeeded(), and(eq(variables['DoMSI'], 'true'), eq(variables['DoEmbed'], 'true')))
55

66
pool:
7-
#vmName: win2016-vs2017
7+
#vmImage: windows-2019
88
name: 'Windows Release'
99

1010
workspace:

‎.azure-pipelines/windows-release/stage-publish-store.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
condition: and(succeeded(), eq(variables['DoMSIX'], 'true'))
55

66
pool:
7-
vmName: win2016-vs2017
7+
vmImage: windows-2019
88

99
workspace:
1010
clean: all

‎.azure-pipelines/windows-release/stage-sign.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
condition: and(succeeded(), not(variables['SigningCertificate']))
115115

116116
pool:
117-
vmName: win2016-vs2017
117+
vmImage: windows-2019
118118

119119
steps:
120120
- checkout: none

‎.azure-pipelines/windows-release/stage-test-embed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
condition: and(succeeded(), eq(variables['DoEmbed'], 'true'))
55

66
pool:
7-
vmName: win2016-vs2017
7+
vmImage: windows-2019
88

99
workspace:
1010
clean: all

‎.azure-pipelines/windows-release/stage-test-msi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ jobs:
33
displayName: Test MSI
44

55
pool:
6-
vmName: win2016-vs2017
6+
vmImage: windows-2019
77

88
workspace:
99
clean: all

‎.azure-pipelines/windows-release/stage-test-nuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
condition: and(succeeded(), eq(variables['DoNuget'], 'true'))
55

66
pool:
7-
vmName: win2016-vs2017
7+
vmImage: windows-2019
88

99
workspace:
1010
clean: all
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update Windows release build machines to Visual Studio 2019 (MSVC 14.2).

‎PC/layout/support/nuspec.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
NUSPEC_DATA = {
1515
"PYTHON_TAG": VER_DOT,
1616
"PYTHON_VERSION": os.getenv("PYTHON_NUSPEC_VERSION"),
17-
"FILELIST": r' <file src="**\*" target="tools" />',
17+
"FILELIST": r' <file src="**\*" exclude="python.png" target="tools" />',
1818
"GIT": sys._git,
1919
}
2020

@@ -31,7 +31,7 @@
3131
VER_DOT, VER_MICRO, "-" if VER_SUFFIX else "", VER_SUFFIX
3232
)
3333

34-
FILELIST_WITH_PROPS = r""" <file src="**\*" exclude="python.props" target="tools" />
34+
FILELIST_WITH_PROPS = r""" <file src="**\*" exclude="python.png;python.props" target="tools" />
3535
<file src="python.props" target="build\native" />"""
3636

3737
NUSPEC_TEMPLATE = r"""<?xml version="1.0"?>
@@ -44,13 +44,13 @@
4444
<license type="file">tools\LICENSE.txt</license>
4545
<projectUrl>https://www.python.org/</projectUrl>
4646
<description>Installs {PYTHON_BITNESS} Python for use in build scenarios.</description>
47-
<icon>images\logox128.png</icon>
47+
<icon>images\python.png</icon>
4848
<iconUrl>https://www.python.org/static/favicon.ico</iconUrl>
4949
<tags>python</tags>
5050
<repository type="git" url="https://github.com/Python/CPython.git" commit="{GIT[2]}" />
5151
</metadata>
5252
<files>
53-
<file src="{LOGO}" target="images" />
53+
<file src="python.png" target="images" />
5454
{FILELIST}
5555
</files>
5656
</package>
@@ -73,6 +73,6 @@ def get_nuspec_layout(ns):
7373
data[k] = v
7474
if ns.include_all or ns.include_props:
7575
data["FILELIST"] = FILELIST_WITH_PROPS
76-
data["LOGO"] = ns.source / "PC" / "icons" / "logox128.png"
7776
nuspec = NUSPEC_TEMPLATE.format_map(data)
7877
yield "python.nuspec", ("python.nuspec", nuspec.encode("utf-8"))
78+
yield "python.png", ns.source / "PC" / "icons" / "logox128.png"

‎Tools/nuget/make_pkg.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
<PackageArguments Condition="$(Packages) != ''">"$(IntermediateOutputPath)pkg\pip.exe" -B -m pip install -U $(Packages)</PackageArguments>
3535

36-
<NugetPackCommand>"$(Nuget)" pack "$(MSBuildThisFileDirectory)\$(OutputName).nuspec" -BasePath "$(IntermediateOutputPath)pkg"</NugetPackCommand>
36+
<NugetPackCommand>"$(Nuget)" pack "$(IntermediateOutputPath)pkg\python.nuspec" -BasePath "$(IntermediateOutputPath)pkg"</NugetPackCommand>
3737
<NugetPackSymbolsCommand Condition="Exists('$(MSBuildThisFileDirectory)\$(OutputName).symbols.nuspec')">"$(Nuget)" pack "$(MSBuildThisFileDirectory)\$(OutputName).symbols.nuspec" -BasePath "$(BuildPath.TrimEnd(`\`))"</NugetPackSymbolsCommand>
3838
<NugetArguments>$(NugetArguments) -OutputDirectory "$(OutputPath.Trim(`\`))"</NugetArguments>
3939
<NugetArguments>$(NugetArguments) -Version "$(NuspecVersion)"</NugetArguments>

0 commit comments

Comments
 (0)
Please sign in to comment.