]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39789: Update Windows release build machines to VS 2019 (GH-18695)
authorSteve Dower <steve.dower@python.org>
Sat, 29 Feb 2020 00:21:46 +0000 (00:21 +0000)
committerGitHub <noreply@github.com>
Sat, 29 Feb 2020 00:21:46 +0000 (00:21 +0000)
Also fixes some potential Nuget build issues.

18 files changed:
.azure-pipelines/windows-release/stage-build.yml
.azure-pipelines/windows-release/stage-layout-embed.yml
.azure-pipelines/windows-release/stage-layout-full.yml
.azure-pipelines/windows-release/stage-layout-msix.yml
.azure-pipelines/windows-release/stage-layout-nuget.yml
.azure-pipelines/windows-release/stage-msi.yml
.azure-pipelines/windows-release/stage-pack-msix.yml
.azure-pipelines/windows-release/stage-pack-nuget.yml
.azure-pipelines/windows-release/stage-publish-nugetorg.yml
.azure-pipelines/windows-release/stage-publish-pythonorg.yml
.azure-pipelines/windows-release/stage-publish-store.yml
.azure-pipelines/windows-release/stage-sign.yml
.azure-pipelines/windows-release/stage-test-embed.yml
.azure-pipelines/windows-release/stage-test-msi.yml
.azure-pipelines/windows-release/stage-test-nuget.yml
Misc/NEWS.d/next/Windows/2020-02-28-22-46-09.bpo-39789.67XRoP.rst [new file with mode: 0644]
PC/layout/support/nuspec.py
Tools/nuget/make_pkg.proj

index 9391a91e30b5e68e4b6006d92e63a296eb4b189e..69f3b1e16451ec557c7515162335fcc4e8902dca 100644 (file)
@@ -3,7 +3,7 @@ jobs:
   displayName: Docs build
   pool:
     name: 'Windows Release'
-    #vmName: win2016-vs2017
+    #vmImage: windows-2019
 
   workspace:
     clean: all
@@ -45,7 +45,7 @@ jobs:
   displayName: Python build
 
   pool:
-    vmName: win2016-vs2017
+    vmImage: windows-2019
 
   workspace:
     clean: all
@@ -91,7 +91,7 @@ jobs:
   condition: and(succeeded(), ne(variables['DoPGO'], 'true'))
 
   pool:
-    vmName: win2016-vs2017
+    vmImage: windows-2019
 
   workspace:
     clean: all
@@ -141,7 +141,7 @@ jobs:
   displayName: Publish Tcl/Tk Library
 
   pool:
-    vmName: windows-latest
+    vmImage: windows-2019
 
   workspace:
     clean: all
index 3306e1cbc49d98182016e083d9f968e3dd1ceeb3..dbccdead143b214896834f04627a6704194e97c1 100644 (file)
@@ -4,7 +4,7 @@ jobs:
   condition: and(succeeded(), eq(variables['DoEmbed'], 'true'))
 
   pool:
-    vmName: win2016-vs2017
+    vmImage: windows-2019
 
   workspace:
     clean: all
index 78bc1b3975e93db469fedb08d5ccd49e92c1fb5a..8fc8da3e52fe03622e93daede26f87343f080af4 100644 (file)
@@ -4,7 +4,7 @@ jobs:
   condition: and(succeeded(), eq(variables['DoLayout'], 'true'))
 
   pool:
-    vmName: win2016-vs2017
+    vmImage: windows-2019
 
   workspace:
     clean: all
index 60a5c9ea5435c8062aec4b83ae829a5ad97c1469..def4f7d3c6bee5fa50104572a34543fbb004466b 100644 (file)
@@ -3,7 +3,7 @@ jobs:
   displayName: Make MSIX layout
 
   pool:
-    vmName: win2016-vs2017
+    vmImage: windows-2019
 
   workspace:
     clean: all
index 7e20f89530349c70dce4ba5481a57af161d05e28..41cdff850e83be351a6aefffec63ce1ea369a188 100644 (file)
@@ -4,7 +4,7 @@ jobs:
   condition: and(succeeded(), eq(variables['DoNuget'], 'true'))
 
   pool:
-    vmName: win2016-vs2017
+    vmImage: windows-2019
 
   workspace:
     clean: all
index 7afc816a0c6e9c7524eb9eed0f34c363bdcca30f..9b965b09c14748145210cd01523095a1b7db6f56 100644 (file)
@@ -4,7 +4,7 @@ jobs:
   condition: and(succeeded(), not(variables['SigningCertificate']))
 
   pool:
-    vmName: win2016-vs2017
+    vmImage: windows-2019
 
   variables:
     ReleaseUri: http://www.python.org/{arch}
index f17ba9628e21b037e60067b77f1a6fae690480ee..07e343a0b4e0c7886684b8aa8f1ffa8dcb29229c 100644 (file)
@@ -3,7 +3,7 @@ jobs:
   displayName: Pack MSIX bundles
 
   pool:
-    vmName: win2016-vs2017
+    vmImage: windows-2019
 
   workspace:
     clean: all
index 34619fc5fdc31870861c898815a10a83ab1676f9..b100364820d95b6cc263f9cf2b6ebd2838d884a1 100644 (file)
@@ -4,7 +4,7 @@ jobs:
   condition: and(succeeded(), eq(variables['DoNuget'], 'true'))
 
   pool:
-    vmName: win2016-vs2017
+    vmImage: windows-2019
 
   workspace:
     clean: all
index b78bd493a0fd1bbf3f6474b492640a9cd1bd4ccf..d5edf44ef5c2ec26a3e3a25898f47ad0fcfbdd2a 100644 (file)
@@ -4,7 +4,7 @@ jobs:
   condition: and(succeeded(), eq(variables['DoNuget'], 'true'))
 
   pool:
-    vmName: win2016-vs2017
+    vmImage: windows-2019
 
   workspace:
     clean: all
index 0474d40e4bc026d22a6034799998309dd3fb7421..4b88bdebf8cc4138b2c42a28c8046e2b2e8062d4 100644 (file)
@@ -4,7 +4,7 @@ jobs:
   condition: and(succeeded(), and(eq(variables['DoMSI'], 'true'), eq(variables['DoEmbed'], 'true')))
 
   pool:
-    #vmName: win2016-vs2017
+    #vmImage: windows-2019
     name: 'Windows Release'
 
   workspace:
index b22147b1ab45e79d60a6a079254aa65b069e796e..e0512b95f27da822e30076943007bbfcd27dff6e 100644 (file)
@@ -4,7 +4,7 @@ jobs:
   condition: and(succeeded(), eq(variables['DoMSIX'], 'true'))
 
   pool:
-    vmName: win2016-vs2017
+    vmImage: windows-2019
 
   workspace:
     clean: all
index a0adc0581229d9a7efde7e7327057513e6705556..4d757ae8fca0325e3576a98da55ffac237238557 100644 (file)
@@ -114,7 +114,7 @@ jobs:
   condition: and(succeeded(), not(variables['SigningCertificate']))
 
   pool:
-    vmName: win2016-vs2017
+    vmImage: windows-2019
 
   steps:
   - checkout: none
index b33176266a20da408fcf664c99fc13c919ca5b28..d99bd74722bacb5488dbc3f66968837818693aeb 100644 (file)
@@ -4,7 +4,7 @@ jobs:
   condition: and(succeeded(), eq(variables['DoEmbed'], 'true'))
 
   pool:
-    vmName: win2016-vs2017
+    vmImage: windows-2019
 
   workspace:
     clean: all
index 27b0c96987a7a0aa2eab1142c9946e518c2b27b5..21e38c39590f701e9869c0b522bc58cb042d060a 100644 (file)
@@ -3,7 +3,7 @@ jobs:
   displayName: Test MSI
 
   pool:
-    vmName: win2016-vs2017
+    vmImage: windows-2019
 
   workspace:
     clean: all
index 1f8b601d0d023bd2339ae0323025d8436e76aa12..94d815e95226ef38853d570cea34c05c09efeea5 100644 (file)
@@ -4,7 +4,7 @@ jobs:
   condition: and(succeeded(), eq(variables['DoNuget'], 'true'))
 
   pool:
-    vmName: win2016-vs2017
+    vmImage: windows-2019
 
   workspace:
     clean: all
diff --git a/Misc/NEWS.d/next/Windows/2020-02-28-22-46-09.bpo-39789.67XRoP.rst b/Misc/NEWS.d/next/Windows/2020-02-28-22-46-09.bpo-39789.67XRoP.rst
new file mode 100644 (file)
index 0000000..077b0af
--- /dev/null
@@ -0,0 +1 @@
+Update Windows release build machines to Visual Studio 2019 (MSVC 14.2).
index 9c6a9a915950980936fec614c215cc9589537968..dbcb713ef9d0c00c0153bb3b98b739a98abdc709 100644 (file)
@@ -14,7 +14,7 @@ PYTHON_NUSPEC_NAME = "python.nuspec"
 NUSPEC_DATA = {
     "PYTHON_TAG": VER_DOT,
     "PYTHON_VERSION": os.getenv("PYTHON_NUSPEC_VERSION"),
-    "FILELIST": r'    <file src="**\*" target="tools" />',
+    "FILELIST": r'    <file src="**\*" exclude="python.png" target="tools" />',
     "GIT": sys._git,
 }
 
@@ -31,7 +31,7 @@ if not NUSPEC_DATA["PYTHON_VERSION"]:
         VER_DOT, VER_MICRO, "-" if VER_SUFFIX else "", VER_SUFFIX
     )
 
-FILELIST_WITH_PROPS = r"""    <file src="**\*" exclude="python.props" target="tools" />
+FILELIST_WITH_PROPS = r"""    <file src="**\*" exclude="python.png;python.props" target="tools" />
     <file src="python.props" target="build\native" />"""
 
 NUSPEC_TEMPLATE = r"""<?xml version="1.0"?>
@@ -44,13 +44,13 @@ NUSPEC_TEMPLATE = r"""<?xml version="1.0"?>
     <license type="file">tools\LICENSE.txt</license>
     <projectUrl>https://www.python.org/</projectUrl>
     <description>Installs {PYTHON_BITNESS} Python for use in build scenarios.</description>
-    <icon>images\logox128.png</icon>
+    <icon>images\python.png</icon>
     <iconUrl>https://www.python.org/static/favicon.ico</iconUrl>
     <tags>python</tags>
     <repository type="git" url="https://github.com/Python/CPython.git" commit="{GIT[2]}" />
   </metadata>
   <files>
-    <file src="{LOGO}" target="images" />
+    <file src="python.png" target="images" />
 {FILELIST}
   </files>
 </package>
@@ -73,6 +73,6 @@ def get_nuspec_layout(ns):
                 data[k] = v
         if ns.include_all or ns.include_props:
             data["FILELIST"] = FILELIST_WITH_PROPS
-        data["LOGO"] = ns.source / "PC" / "icons" / "logox128.png"
         nuspec = NUSPEC_TEMPLATE.format_map(data)
         yield "python.nuspec", ("python.nuspec", nuspec.encode("utf-8"))
+        yield "python.png", ns.source / "PC" / "icons" / "logox128.png"
index b387b8eef5423c932ef580fc01391b3934fbb4ee..710ef3dcb5c01de169dafda3f66f8359803a77a0 100644 (file)
@@ -33,7 +33,7 @@
         
         <PackageArguments Condition="$(Packages) != ''">"$(IntermediateOutputPath)pkg\pip.exe" -B -m pip install -U $(Packages)</PackageArguments>
         
-        <NugetPackCommand>"$(Nuget)" pack "$(MSBuildThisFileDirectory)\$(OutputName).nuspec" -BasePath "$(IntermediateOutputPath)pkg"</NugetPackCommand>
+        <NugetPackCommand>"$(Nuget)" pack "$(IntermediateOutputPath)pkg\python.nuspec" -BasePath "$(IntermediateOutputPath)pkg"</NugetPackCommand>
         <NugetPackSymbolsCommand Condition="Exists('$(MSBuildThisFileDirectory)\$(OutputName).symbols.nuspec')">"$(Nuget)" pack "$(MSBuildThisFileDirectory)\$(OutputName).symbols.nuspec" -BasePath "$(BuildPath.TrimEnd(`\`))"</NugetPackSymbolsCommand>
         <NugetArguments>$(NugetArguments) -OutputDirectory "$(OutputPath.Trim(`\`))"</NugetArguments>
         <NugetArguments>$(NugetArguments) -Version "$(NuspecVersion)"</NugetArguments>