[issue39952] Using VS2019 to automatically build Python3 and it failed to build

Steve Dower report at bugs.python.org
Tue Mar 17 06:56:07 EDT 2020


Steve Dower <steve.dower at python.org> added the comment:

Hi Lin, please look me up on Teams and we can chat about this. I haven't heard about this effort and I'd love to know what you're working on.

---

The last error is because the VS Setup team has never updated their package to include v142 libs (https://www.nuget.org/packages/Microsoft.VisualStudio.Setup.Configuration.Native/)

If you're prepared to make modifications, then it's probably easiest to backport the change we made in Python 3.7 to shell out to vswhere.exe instead of directly enumerating installs. See Lib/distutils/_msvccompiler.py (it's probably safe to take the entire file and just remove the _distutils_findvs.vcxproj project).

Or if you know that the .lib format is compatible, you could update the AdditionalLibraryDirectories value in _distutils_findvs.vcxproj to not use $(PlatformToolset) and just specify v141.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39952>
_______________________________________


More information about the Python-bugs-list mailing list