- Notifications
You must be signed in to change notification settings - Fork748
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
33f969e
to54a54ce
CompareUh oh!
There was an error while loading.Please reload this page.
lostmsu commentedJan 30, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I see failures regarding |
These are false negatives. I will pass the ABI flags through, but the "m" ABI flag can be safely ignored. |
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 |
The finalizer breakages are from objects generated in |
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. |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
|
Uh oh!
There was an error while loading.Please reload this page.
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 commentedFeb 13, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@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. |
e10a492
to5d00485
Compare
Uh oh!
There was an error while loading.Please reload this page.
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.
AUTHORS
CHANGELOG