Skip to content

Do not call find_libpython during import clr as Python.Runtime can find it on its own #1440

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

Conversation

lostmsu
Copy link
Member

@lostmsu lostmsu commented Apr 11, 2021

What does this implement/fix? Explain your changes.

find_libpython spectacularly fails to find libpython for debug build of Python on latest Ubuntu (e.g. apt install python3-dbg; python3-dbg). It is also not necessary at runtime, since Python.Runtime can now find C API functions, since they are already loaded into the process.

Does this close any currently open issues?

Probably these:
#1388
#1412 (partially)

@lostmsu lostmsu requested a review from filmor April 11, 2021 21:16
@filmor
Copy link
Member

filmor commented Apr 12, 2021

Yeah, let's try it like this. I'll create a follow-up PR to make the CI use the (now adjusted) upstream find_libpython.

@filmor filmor merged commit 0775458 into pythonnet:master Apr 12, 2021
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.

2 participants