[3.11] Building python 3.11.4 installer, launcher.wixproj cannot detect v143 buildtools

Problem

I tried to build Python 3.11.4 with Visual Studio 2022 (v143) and I get following error at the end of compilation.
Rest of the project binaries are built using v143 successfully.

Project "D:\build\DE-Python\Python\Tools\msi\launcher\launcher.wixproj" (1) is building "D:\build\DE-Python\Python\PCbuild\pyshellext.vcxproj" (2) on node 1 (default targets).
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 bui
ld 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". [D:\build\DE-Python\Python\
PCbuild\pyshellext.vcxproj]

I used following command to build: Python\Tools\msi\build.bat -x64 --pack

My environment

VCIDEInstallDir=C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\VC
VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio\2022\Professional\VC
VCToolsInstallDir=C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532
VCToolsRedistDir=C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Redist\MSVC\14.36.32532
VCToolsVersion=14.36.32532
VisualStudioVersion=17.0
VS170COMNTOOLS=C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\Tools
VS2022INSTALLDIR=C:\Program Files\Microsoft Visual Studio\2022\Professional
VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio\2022\Professional\

  • CPython versions tested on: Python 3.11.4
  • Operating system and architecture:
    Edition Windows 10 Enterprise
    Version 22H2
    Installed on ‎7/‎14/‎2023
    OS build 19045.3031
    Experience Windows Feature Experience Pack 1000.19041.1000.0

Steps to reproduce

  1. Install Visual Studio 2022 on Windows 10 Enterprise (or any other flavor)
  2. Install PythonDevelopment tools (with Python native development tools)
  3. Download source code zip for python 3.11.4
  4. Execute: Tools\msi\build.bat -x64 --pack
  5. Expected result: Installer should be created

On this setup I tried to compile python 3.10.12 and it successfully created the installer, this issue I only see with Python 3.11.x and 3.12.x series.