8000 GH-127970: find the runtime library when dladdr is available by FFY00 · Pull Request #127972 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-127970: find the runtime library when dladdr is available #127972

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
merged 13 commits into from
Jan 8, 2025
Prev Previous commit
Next Next commit
Rewrite news to frame this as a feature
Signed-off-by: Filipe Laíns <lains@riseup.net
  • Loading branch information
FFY00 committed Dec 17, 2024
commit 4274ff9cc5096f73a15b3a721ce2f78571e30406
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
Fix the loaded ``libpython`` library not being taken into account when
calculating :data:`sys.base_prefix` and :data:`sys.base_exec_prefix`.
We now use the location of the ``libpython`` runtime library used in the current
proccess to determine :data:`sys.base_prefix` on all platforms implementing the
`dladdr <https://pubs.opengroup.org/onlinepubs/9799919799/functions/dladdr.html>`
function defined by the UNIX standard — this includes Linux, Android, macOS, iOS,
FreeBSD, etc. This was already the case on Windows and macOS Framework builds.
Loading
0