Skip to content

Update setup.py - use vswhere for msbuild 15+ #540

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

Closed
wants to merge 7 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update setup.py
  • Loading branch information
denfromufa authored Sep 11, 2017
commit a088a1167c97deb4ac17a531246bddaa6c378426
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,9 @@ def _find_msbuild_tool(self, tool="msbuild.exe", use_windows_sdk=False):
return path

if tool == "msbuild.exe":
vswhere = os.path.join("tools", "vswhere", "vswhere.exe")
basePathes = subprocess.check_output(
["vswhere", "-latest",
[vswhere, "-latest",
"-version", "[15.0, 16.0)",
"-requires", "Microsoft.Component.MSBuild",
"-property", "InstallationPath"]).splitlines()
Expand Down