Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Found this when building for #1928.
Not sure if anyone else ran into this. I must mention that I have 9 different VStudio versions installed (and each one installed its "own" WinSDK version). At some point I did some cleanup (as there were too many WinSDKs), I don't remember if I did that from Programs and Features or from a VStudio installer (in any case I didn't manually alter the paths or registry keys).
Bottom line is that I have a discrepancy between registry and disk (1st entry returned by registry does not exist on disk) and due to (what I consider) a bug in setup.py, I end up in the following situation:
even if I have valid WinSDK version(s).
Besides the fix, I also extracted registry code in a different function (will be easier to maintain in case MS decides to also release 064bit WinSDK versions), and renamed some variables.
This can be worked around by setting MSSDK_* variables, but it should also work OOTB.