Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.11] [3.12] Building python 3.11.4 installer FAILS, launcher.wixproj cannot detect v143 buildtools #106765

Copy link
Copy link
Closed
@ashish-2022

Description

@ashish-2022
Issue body actions

Bug report

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

Note: This command successfully creates installer for Python 3.10.12 on same setup.

Build steps from: https://github.com/python/cpython/blob/main/Tools/msi/README.txt no longer work for 3.11.x and 3.12.x series for python users

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. Enable .Net Framework 3.5 on Windows 10
  2. Install Visual Studio 2022(v143 toolset) on Windows 10 Enterprise (or any other flavor)
  3. Install PythonDevelopment tools (with Python native development tools)
  4. Download source code zip for python 3.11.4
  5. Execute: Tools\msi\build.bat -x64 --pack
  6. Expected result: Installer should be created

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowsbuildThe build process and cross-buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.