Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SofianJabal opened this issue Mar 18, 2020 · 8 comments · May be fixed by #2396
Open

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

SofianJabal opened this issue Mar 18, 2020 · 8 comments · May be fixed by #2396

Comments

@SofianJabal
Copy link

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?

@mhammond
Copy link
Owner

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

@SofianJabal
Copy link
Author

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

@SofianJabal
Copy link
Author

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

@mhammond
Copy link
Owner

@icanhasmath
Copy link

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: #1489 (comment)

@mhammond
Copy link
Owner

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

I have no idea, I've never tried.

@kxrob
Copy link
Collaborator

kxrob commented Apr 14, 2021

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.

@Avasam
Copy link
Collaborator

Avasam commented Oct 18, 2024

Note to readers that python setup.py and the use of setup.py as a command line tool are deprecated. pywin32 itself needs to move away from it. #2208

As for the build environment, please see the updated instructions in https://github.com/mhammond/pywin32/blob/main/build_env.md#build-environment

@Avasam Avasam linked a pull request Oct 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants