Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixed problem with --xplat build when mono does not installed. #572

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
Dec 8, 2017

Conversation

dmitriyse
Copy link
Contributor

What does this implement/fix? Explain your changes.

Fixes --xplat build when no mono available.
...

Does this close any currently open issues?

#571
...

Any other comments?

...

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Add yourself to AUTHORS
  • Updated the CHANGELOG

@codecov
Copy link

codecov bot commented Nov 15, 2017

Codecov Report

Merging #572 into master will decrease coverage by 0.06%.
The diff coverage is 28.57%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #572      +/-   ##
==========================================
- Coverage   77.14%   77.07%   -0.07%     
==========================================
  Files          65       65              
  Lines        5617     5623       +6     
  Branches      888      888              
==========================================
+ Hits         4333     4334       +1     
- Misses        996     1001       +5     
  Partials      288      288
Flag Coverage Δ
#setup_linux 70.68% <28.57%> (-1.15%) ⬇️
#setup_windows 76.2% <0%> (-0.09%) ⬇️
Impacted Files Coverage Δ
setup.py 87.41% <28.57%> (-1.57%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f5a002f...9d25e9c. Read the comment docs.

@@ -281,7 +281,13 @@ def _get_manifest(self, build_dir):
return manifest

def _build_monoclr(self):
mono_libs = _check_output("pkg-config --libs mono-2", shell=True)
try:
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the mono cflags check should be in the try block as well - it also throws in the same way, I believe

Copy link
Contributor

Choose a reason for hiding this comment

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

@dmitriyse is this not failing in CI because both Mono and .NET Core are available?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, --xplat was working in CI only due to both frameworks installed.

@Cronan
Copy link
Contributor

Cronan commented Dec 8, 2017

I can confirm that I am able to successfully build using this branch, although tests still fail, and nPython doesn't really work either, as per #571 comments

@den-run-ai
Copy link
Contributor

@Cronan so you can build pythonnet for .NET Core without Mono installed on this Linux machine?

@Cronan
Copy link
Contributor

Cronan commented Dec 8, 2017

@denfromufa yes, I can build pythonnet for .NET Core without Mono installed on RH Linux Enterprise 7.3 (using the code in this PR)

@den-run-ai
Copy link
Contributor

ok, I'm merging this pull request, thanks @dmitriyse @Cronan !

@den-run-ai den-run-ai merged commit a6bba66 into pythonnet:master Dec 8, 2017
@Cronan Cronan mentioned this pull request Dec 12, 2017
@dmitriyse dmitriyse deleted the monoclr_xplat_skip branch January 12, 2018 17:50
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