Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added CoreCLR 2.0 build target. Compile issues fixed.#519

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
filmor merged 19 commits intopythonnet:masterfromdmitriyse:coreclr2
Sep 21, 2017

Conversation

dmitriyse
Copy link
Contributor

@dmitriysedmitriyse commentedJul 29, 2017
edited
Loading

What does this implement/fix? Explain your changes.

Added dotnet core 2.0 build target. All tests are passed under win, py35, x64.
...

Does this close any currently open issues?

Work towards#96
...

Any other comments?

After a half of a year CoreCLR 1.0 will go away, so we can only offer CoreCLR 2.0 support.

Porting to CoreCLR 2.0 is much simpler than to CoreCLR 1.0. So we can do all the work right in the master. Xplat build fortunately can coexist side-by-side with the current build.
(See#518)

...

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 toAUTHORS
  • Updated theCHANGELOG

@mention-bot
Copy link

@dmitriyse, thanks!@vmuriart,@tiran,@brianlloyd,@filmor and@tonyroberts, please review this.

@codecov
Copy link

codecovbot commentedJul 29, 2017
edited
Loading

Codecov Report

Merging#519 intomaster willdecrease coverage by0.18%.
The diff coverage is100%.

Impacted file tree graph

@@            Coverage Diff             @@##           master     #519      +/-   ##==========================================- Coverage   77.34%   77.16%   -0.19%==========================================  Files          65       65                Lines        5611     5610       -1       Branches      889      888       -1     ==========================================- Hits         4340     4329      -11- Misses        983      993      +10  Partials      288      288
FlagCoverage Δ
#setup_linux73.64% <100%> (+0.19%)⬆️
#setup_windows76.31% <100%> (-0.19%)⬇️
Impacted FilesCoverage Δ
src/runtime/nativecall.cs100% <ø> (+2.22%)⬆️
src/runtime/runtime.cs90.98% <ø> (ø)⬆️
src/runtime/pyobject.cs38.85% <100%> (-0.29%)⬇️
src/runtime/pyscope.cs57.71% <100%> (-1%)⬇️
setup.py89.81% <100%> (+0.07%)⬆️
src/runtime/pythonexception.cs64.28% <100%> (-14.29%)⬇️
src/runtime/metatype.cs71.55% <100%> (ø)⬆️
src/runtime/delegatemanager.cs88.18% <100%> (-0.32%)⬇️
... and2 more

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update4b381bf...441dacf. Read thecomment docs.

@dmitriyse
Copy link
ContributorAuthor

Tested under windows, miniconda python 3.5, x64. All tests are passed.

@den-run-ai
Copy link
Contributor

@dmitriyse why do you have 2 similar pull requests?

@dmitriyse
Copy link
ContributorAuthor

This#518 PR contains only new build system which is able to build all current targets for windows and linux. And contains absolutely minimum changes in the code.

But this request contains NetStandard 2.0 build target + fixes in code to allow compile and pass tests.

yatli reacted with thumbs up emojiyatli reacted with heart emoji

@dmitriyse
Copy link
ContributorAuthor

Please see this comment#518 (comment), this PR should add new build target after#518 will be merged into the master.

@den-run-ai
Copy link
Contributor

den-run-ai commentedAug 8, 2017
edited
Loading

@dmitriyse can you merge these 2 PR? I still don't understand why you separated them? And I still don't see any testing done for .NET Core target.

@dmitriyse
Copy link
ContributorAuthor

@dmitriyse can you merge these 2 PR? I still don't understand why you separated them? And I still don't see any testing done for .NET Core target.

@denfromufa
Please see this comment#518 (comment)

@dmitriyse
Copy link
ContributorAuthor

dmitriyse commentedAug 21, 2017
edited
Loading

Debug session finished. I need to fix points received from this session.
All such imports:

[DllImport(_PythonDll,CallingConvention=CallingConvention.Cdecl)]internalstaticexternintPyDict_SetItemString(IntPtrpointer,stringkey,IntPtrvalue);

Should be modified to

[DllImport(_PythonDll,CallingConvention=CallingConvention.Cdecl,CharSet=CharSet.Ansi)]internalstaticexternintPyDict_SetItemString(IntPtrpointer,stringkey,IntPtrvalue);

And other build script fixes.

@dmitriysedmitriyseforce-pushed thecoreclr2 branch 2 times, most recently fromf7516e7 to7bc892eCompareAugust 22, 2017 14:01
@dmitriyse
Copy link
ContributorAuthor

I managed to get EmbeddingTests works under NetCoreApp 2.0 target on all configurations except x86
x86 Support we can add later, once somebody will have enough time.

@dmitriyse
Copy link
ContributorAuthor

Both targets (net40 and netcoreapp2.0) are build and tested in the same --xplat CI configuration. It's simpler to implement and saves some time on awaiting build result.

@dmitriyse
Copy link
ContributorAuthor

Also I found a problem under NetCoreApp 2.0 - import "numpy" failed.

@dmitriyse
Copy link
ContributorAuthor

This PR is ready for merging to the master.
Current work allows to use python from the NetCoreApp 2.0 x64.

There are two main missing features, that can be implemented later:

  1. x86 Support for .NetCoreApp 2.0
  2. Access to .NetCoreApp 2.0 libraries from the genuine python.

@dmitriysedmitriyseforce-pushed thecoreclr2 branch 5 times, most recently fromcc7f5f8 to307f1ddCompareAugust 28, 2017 13:12
DEBUG;TRACE fix for the case VS + non empty PYTHONNET_DEFINE_CONSTANTS
Copy link
Member

@filmorfilmor left a comment

Choose a reason for hiding this comment

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

Same as#518, I think we should go ahead with the current state for now.

@filmorfilmor merged commitdf1c224 intopythonnet:masterSep 21, 2017
testrunner123 pushed a commit to testrunner123/pythonnet that referenced this pull requestSep 22, 2017
* Full featured xplat build.* NetCoreApp 2.0 target added, compile issues fixed, CI system improved.* .Net 45 TargetingPack System.XML.dll naming fix. (For xplat linux build).* Setup.py --xplat option refactored. Travis-ci build matrix extended.* AppVeyor matrix extended, xplat build added.* appveyor.yml yaml syntax fix.* NUnit dependency upgraded to 3.7. Changelog improved.* EmbeddingTest fixes, and stubs.* Fix for importing numpy and other python modules with native parts.* Changelog improved.* Build order improvement.* NetCoreApp 2.0 fix. EmitCalli does not supports cdecl. Falling-back to a slow Marshal-based solution. + x86 fix.* All finalizers are disabled until valid implementation. Helps to avoid non relevant CI build faults.* Mono builds now can be build on Windows.DEBUG;TRACE fix for the case VS + non empty PYTHONNET_DEFINE_CONSTANTS* Python.Runtime.dll now targets NetStandard2.0 inplace of NetCoreApp 2.0* Wrong NETSTANDARD/NETCOREAPP define constant change.* Typo fix.
dmitriyse pushed a commit that referenced this pull requestNov 16, 2017
dmitriyse pushed a commit that referenced this pull requestNov 16, 2017
dmitriyse added a commit that referenced this pull requestNov 16, 2017
@dmitriysedmitriyse deleted the coreclr2 branchNovember 17, 2017 07:37
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@filmorfilmorfilmor approved these changes

@tonyrobertstonyrobertsAwaiting requested review from tonyroberts

@vmuriartvmuriartAwaiting requested review from vmuriart

@den-run-aiden-run-aiAwaiting requested review from den-run-ai

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@dmitriyse@mention-bot@den-run-ai@filmor

[8]ページ先頭

©2009-2025 Movatter.jp