-
Notifications
You must be signed in to change notification settings - Fork 751
List installed Win10 SDK's when looking for windows sdk tool #838
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #838 +/- ##
==========================================
+ Coverage 76.67% 76.72% +0.05%
==========================================
Files 64 64
Lines 5928 5943 +15
Branches 978 978
==========================================
+ Hits 4545 4560 +15
Misses 1052 1052
Partials 331 331
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #838 +/- ##
==========================================
+ Coverage 76.67% 76.72% +0.05%
==========================================
Files 64 64
Lines 5928 5943 +15
Branches 978 978
==========================================
+ Hits 4545 4560 +15
Misses 1052 1052
Partials 331 331
Continue to review full report at Codecov.
|
Thank you very much :) I'm going to merge this for now, I'm just wondering whether we'll need this in the future. In PR #830 I've experimented with |
Looking at #830, using vswhere is a much better solution. I'm not sure when was vswhere introduced so I would recommend keeping the current logic as a fallback in case vswhere is not available on the machine. |
@OneBlue a copy of vswhere is included with pythonnet in tools. Can you try updating that version and see if it resolves your issue? |
The tool that wasn't found was mt.exe, which is looked up like this:
This code path doesn't use vswhere (because use_windows_sdk is True). So updating vswhere won't fix the problem. I also tried to checkout #830, but when I tried to build, I got:
While master builds correctly. |
What does this implement/fix? Explain your changes.
When I try to run
setup.py install
, the installation failed with the following error:Because setup.py is searching for specific versions of the Windows 10 sdk.
This patch changes that behaviour to use the installed Windows 10 sdk instead of relying on specific versions.
Does this close any currently open issues?
No.
Any other comments?
I kept the existing hard-coded sdk version to ensure that this is a non-breaking change.
The objective of this patch is make installation easier.
Checklist
Check all those that are applicable and complete.
AUTHORS
CHANGELOG