Skip to content

Use msbuild tools from PATH if available #208

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

Merged
merged 1 commit into from
Jun 23, 2016

Conversation

rnestler
Copy link
Contributor

While _find_msbuild_tool searches in the registry to find the given
build tool, it doesn't check if it's already in PATH.

If one uses a developer command prompt to build, all necessary tools are
in PATH.

Fixes #207 for me

@den-run-ai
Copy link
Contributor

related:

#194

@@ -22,6 +23,10 @@


def _find_msbuild_tool(tool="msbuild.exe", use_windows_sdk=False):
path = find_executable(tool)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be below the docstring

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh my god how did that happen 😮 Silly me.

While _find_msbuild_tool searches in the registry to find the given
build tool, it doesn't check if it's already in PATH.

If one uses a developer command prompt to build, all necessary tools are
in PATH.

Fixes pythonnet#207 for me
@rnestler rnestler force-pushed the use_tools_in_path branch from 3247415 to 35e3b28 Compare April 20, 2016 20:34
@rnestler
Copy link
Contributor Author

@denfromufa I fixed the docstring issue. Can this be merged or is something else missing?

@den-run-ai
Copy link
Contributor

@rnestler actually it is @tonyroberts who is merging pull requests for pythonnet. I'm ordinary contributor like you are :)

@tonyroberts
Copy link
Contributor

@rnestler looks fine - but the Appveyor CI tests aren't working right now, so I need to fix that before I can merge this PR.

@rnestler
Copy link
Contributor Author

@tonyroberts I activated AppVeyor CI on my fork. It seems to build fine there: https://ci.appveyor.com/project/rnestler/pythonnet/build/1.0.2

@tonyroberts tonyroberts merged commit 72366c6 into pythonnet:master Jun 23, 2016
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 this pull request may close these issues.

3 participants