Skip to content

Th buildrelease.bat from CPython 3.14.0 alpha 3 on Windows 11 failed with error MSB8020 #128797

@OlexYarm

Description

@OlexYarm

Bug report

Bug description:

I updated Windows and Visual Studio Community Edition 2022 to latest version and I tried to build CPython 3.14.0 alpha 3 on windows via command `Tools/msi/buildrelease.bat buildrelease.bat -o pyinstaller -x64 --skip-doc --skip-zip'.
It failed with the following error messages (error MSB8020).

Project "F:\GitHubPy\cpython\Tools\msi\launcher\launcher.wixproj" (1) is building "F:\GitHubPy\cpython\PCbuild\pyshellext.vcxproj" (4:2) on node 1 (Build target(s)).
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(456,5): error MSB8020: The build tools for v143 (Platform Toolset = 'v143') cannot be found. To build using the v143 build tools, please install v143 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [F:\GitHubPy\cpython\PCbuild\pyshellext.vcxproj]
Done Building Project "F:\GitHubPy\cpython\PCbuild\pyshellext.vcxproj" (Build target(s)) -- FAILED.
_CleanRecordFileWrites:
Creating directory "F:\GitHubPy\cpython\PCbuild\obj\314win32_Release\msi_launcher".
Done Building Project "F:\GitHubPy\cpython\Tools\msi\launcher\launcher.wixproj" (default targets) -- FAILED.

Build FAILED.

"F:\GitHubPy\cpython\Tools\msi\launcher\launcher.wixproj" (default target) (1) ->
"F:\GitHubPy\cpython\PCbuild\pyshellext.vcxproj" (Build target) (4:2) ->
(PrepareForBuild target) ->
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(456,5): error MSB8020: The build tools for v143 (Platform Toolset = 'v143') cannot be found. To build using the v143 build tools, please install v143 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [F:\GitHubPy\cpython\PCbuild\pyshellext.vcxproj]

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:04.23

CPython versions tested on:
Main branch 3.14.0 alpha 3

Operating systems tested on:
Edition Windows 11 Pro
Version 24H2
OS build 26100.2605
Experience Windows Feature Experience Pack 1000.26100.36.0

Microsoft Visual Studio Community 2022 (64-bit)
Version 17.12.3
VisualStudio.17.Release/17.12.3+35527.113
Microsoft .NET Framework
Version 4.8.09032

Visual C++ 2022 00476-80000-00000-AA052
Microsoft Visual C++ 2022

CPython versions tested on:

CPython main branch

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.14bugs and security fixesOS-windowsbuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions