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

New loading based on clr_loader#1373

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 9 commits intopythonnet:masterfromfilmor:clr-loader
Feb 14, 2021
Merged

Conversation

filmor
Copy link
Member

@filmorfilmor commentedJan 30, 2021
edited
Loading

What does this implement/fix? Explain your changes.

As the last required step, this allows loading a .NET Core runtime in Python. This is not tested, yet, we'll add it to the test-suite soon.

Does this close any currently open issues?

#857#984

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

koliyo, gsalaz98, BadSingleton, and Martin-Molinero reacted with hooray emoji
@filmorfilmorforce-pushed theclr-loader branch 4 times, most recently from33f969e to54a54ceCompareJanuary 30, 2021 19:20
@lostmsu
Copy link
Member

lostmsu commentedJan 30, 2021
edited
Loading

I see failures regardingNativeTypeOffset. Ideally Python should provide this information. (not sure if it can be done in a separate PR)

@filmor
Copy link
MemberAuthor

I see failures regardingNativeTypeOffset. Ideally Python should provide this information. (not sure if it can be done in a separate PR)

These are false negatives. I will pass the ABI flags through, but the "m" ABI flag can be safely ignored.

@filmor
Copy link
MemberAuthor

This passes essentially all tests now (just the domain reload tests on Windows and macOS are problematic, but at least for the former I can debug this myself. For macOS setting the$PATH correctly at the beginning should be sufficient.

@filmorfilmor marked this pull request as ready for reviewFebruary 1, 2021 09:44
@filmor
Copy link
MemberAuthor

The finalizer breakages are from objects generated intest_class.py andtest_event.py. I'll try to pinpoint this further. I'm pretty certain that these are bugs that just show up now as we now properly call theShutdown function, that seems to have gotten lost somewhere during refactoring before.

@filmorfilmor requested a review fromlostmsuFebruary 2, 2021 12:58
@filmor
Copy link
MemberAuthor

It doesn't really make sense to fix all finalization problems we are seeing in this one PR. I consider this mostly done for now, so please review. I'll squash the changes later into more palatable chunks and will work on improving the ref-count situation in a different branch.

@filmorfilmor requested a review fromlostmsuFebruary 10, 2021 18:06
@filmor
Copy link
MemberAuthor

  • I'll move all GC related changes to a separate branch
  • I'll disable the finalisation call for now

clr_loader is based on CFFI and allows loading pythonnet on different.NET runtime implementations, currently .NET Framework, .NET Core andMono. Apart from dropping the respective old code, this requires the followingchanges:- Move libpython discovery into Python by vendoring and adjusting   `find_libpython`- Adjust the GIL handling in the startup code as CFFI releases the GIL when   calling the external function- Remove the intermittent `configure` command as it is not required   anymore- Adjust a few test-cases- Remove `_AtExit`Due to issues with the reference counts, the `atexit` callback iscurrently essentially a no-op until these are fixed.
@filmor
Copy link
MemberAuthor

filmor commentedFeb 13, 2021
edited
Loading

@lostmsu This is now squashed and doesn't contain any fiddling with ref-counts anymore. I'll merge this if there is no further concern and open a follow-up PR that activates the shutdown, where we can then try to fix the remaining issues one by one.

@filmorfilmorforce-pushed theclr-loader branch 2 times, most recently frome10a492 to5d00485CompareFebruary 14, 2021 11:42
@filmorfilmor merged commit6510ff7 intopythonnet:masterFeb 14, 2021
@filmorfilmor deleted the clr-loader branchFebruary 14, 2021 14:23
@filmorfilmor mentioned this pull requestFeb 14, 2021
4 tasks
lostmsu added a commit that referenced this pull requestFeb 17, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@lostmsulostmsulostmsu requested changes

@amos402amos402amos402 left review comments

@BadSingletonBadSingletonBadSingleton left review comments

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
@filmor@lostmsu@amos402@BadSingleton

[8]ページ先頭

©2009-2025 Movatter.jp