pywin32 icon indicating copy to clipboard operation
pywin32 copied to clipboard

setup.py build fails on Visual Studio 2019 with WDK 10

Open SofianJabal opened this issue 4 years ago • 8 comments

Hi, I'm facing issues with building the package using VS 2019 Could you please add support to WDK 10 or or send instructions on how to do it?

SofianJabal avatar Mar 18 '20 19:03 SofianJabal

Sorry, I doubt I'm going to have time. How about you add this support and send me the instructions?

mhammond avatar Mar 18 '20 21:03 mhammond

I tried :), but I'll check again and update

SofianJabal avatar Mar 18 '20 22:03 SofianJabal

How did you build a wheel package (amd64) for Windows?

SofianJabal avatar Mar 18 '20 22:03 SofianJabal

See https://github.com/mhammond/pywin32/blob/master/make_all.bat

mhammond avatar Mar 19 '20 00:03 mhammond

I have had success building pywin32 on VS2019 by installing the VS2015 MSVC v140 Toolset, but I am wondering if it is possible to build with v142 Toolset components only?

This toolset is referenced here: https://github.com/mhammond/pywin32/issues/1489#issuecomment-602117958

icanhasmath avatar Apr 13 '21 21:04 icanhasmath

but I am wondering if it is possible to build with v142 Toolset components only?

I have no idea, I've never tried.

mhammond avatar Apr 13 '21 22:04 mhammond

MSVC v140 Toolset, but I am wondering if it is possible to build with v142 Toolset components only?

Whatever is behind these menu names in the various installation variants: The recent Python versions are still compiled against vcruntime140.dll - and conforming Python extensions always need to use the same msvc lib version (and corresponding headers) as the Python dll. setup.py / distutils would bark if not found.

kxrob avatar Apr 14 '21 08:04 kxrob