New loading based on clr_loader by filmor · Pull Request #1373 · pythonnet/pythonnet

lostmsu

@filmor filmor marked this pull request as ready for review

February 1, 2021 09:44

filmor

lostmsu

amos402

lostmsu

@filmor

clr_loader is based on CFFI and allows loading pythonnet on different
.NET runtime implementations, currently .NET Framework, .NET Core and
Mono. Apart from dropping the respective old code, this requires the following
changes:
- 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 is
currently essentially a no-op until these are fixed.

@filmor

@filmor

@filmor

lostmsu added a commit that referenced this pull request

Feb 17, 2021

@lostmsu