[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-12-03 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-12-03 Thread Steve Dower
Steve Dower added the comment: New changeset d9301703fb1086cafbd730c17e3d450a192485d6 by Crowthebird in branch 'main': bpo-45816: Support building with VS 2022 (v143 toolset) on Windows (GH-29577) https://github.com/python/cpython/commit/d9301703fb1086cafbd730c17e3d450a192485d6 --

[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-30 Thread Kumar Aditya
Kumar Aditya added the comment: Thanks Steve, installing v142 is indeed my current workaround but would be great to support v143 as it is the latest version. On Tue, Nov 30, 2021, 21:09 Steve Dower wrote: > > Steve Dower added the comment: > > An easy workaround for people encountering this

[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-30 Thread Steve Dower
Steve Dower added the comment: An easy workaround for people encountering this is to set the PlatformToolset environment variable to v143 before building: $env:PlatformToolset = "v143" (or in CMD: set PlatformToolset=v143) Alternatively, you should be able to install the v142 toolset throug

[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-30 Thread Kumar Aditya
Kumar Aditya added the comment: I have installed VS 2022 with v143 of MSVC. I get this error when compiling ```console C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.ta rgets(436,5): error MSB8020: The build tools for Visual Studio 2019

[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-19 Thread Steve Dower
Steve Dower added the comment: Looks like the fix for those errors is to specify the arguments to the linker in PCbuild/pyproject.props /OPT:REF,NOICF /CGTHREADS:1 /PDBTHREADS:1 %(AdditionalOptions) I don't particularly know what a good number of threads is for this. One seems safe, but m

[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-17 Thread Ma Lin
Ma Lin added the comment: They are LNK1268 error: LINK : fatal error LNK1268: inconsistent option 'pdbthreads:5' specified with /USEPROFILE but not with /GENPROFILE [e:\dev\cpython\PCbuild\_queue.vcx proj] LINK : fatal error LNK1268: inconsistent option 'pdbthreads:1' specified with /USEPRO

[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-17 Thread Steve Dower
Steve Dower added the comment: Could you post the errors? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-17 Thread Ma Lin
Ma Lin added the comment: There are 5 link errors when building the PGO build. Command: build --pgo -- nosy: +malin ___ Python tracker ___

[issue45816] Python does not support standalone MSVC v143 (VS 2022) Build Tools

2021-11-16 Thread theeshallnotknowethme
theeshallnotknowethme added the comment: Rephrasing: Python does not support building with standalone MSVC v143 Build Tools, which is the version of MS Build Tools under Visual Studio 2022 (version 17.0). Visual Studio 2022 is the latest stable release of Visual Studio [1]. [1] https://devb