Title: Running Python from the build directory can lead to wrong `libpython` being loaded · Issue #128469 · python/cpython · GitHub
Open Graph Title: Running Python from the build directory can lead to wrong `libpython` being loaded · Issue #128469 · python/cpython
X Title: Running Python from the build directory can lead to wrong `libpython` being loaded · Issue #128469 · python/cpython
Description: Feature or enhancement Proposal: Right now, since we don't set RPATH, when using a shared libpython and running Python from the build directory, the library might resolve to the system, instead of the local one. If possible, it would be ...
Open Graph Description: Feature or enhancement Proposal: Right now, since we don't set RPATH, when using a shared libpython and running Python from the build directory, the library might resolve to the system, instead of ...
X Description: Feature or enhancement Proposal: Right now, since we don't set RPATH, when using a shared libpython and running Python from the build directory, the library might resolve to the system, instead...
Opengraph URL: https://github.com/python/cpython/issues/128469
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Running Python from the build directory can lead to wrong `libpython` being loaded","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nRight now, since we don't set `RPATH`, when using a shared `libpython` and running Python from the build directory, the library might resolve to the system, instead of the local one.\n\nIf possible, it would be good to set `RPATH` on the Python binary in the build directory, to force the local `libpython` library to be loaded. It would also be preferred to use `RPATH` instead of `RUNPATH`, as the prior has precedence over `LD_LIBRARY_PATH`, which users might have set.\n\n### Has this already been discussed elsewhere?\n\nNo response given\n\n### Links to previous discussion of this feature:\n\n_No response_\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-128470\n* gh-128645\n* gh-129506\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/FFY00","@type":"Person","name":"FFY00"},"datePublished":"2025-01-04T04:37:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/128469/cpython/issues/128469"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e282c5fc-ed1d-cab9-cd13-64c551052763 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C130:36E597:5F4FA5E:85E9F90:6A5012CC |
| html-safe-nonce | 801cc8b85fc732dbeb96a70374efa879fe1815f54218cb97c7f5af652f26efac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTMwOjM2RTU5Nzo1RjRGQTVFOjg1RTlGOTA6NkE1MDEyQ0MiLCJ2aXNpdG9yX2lkIjoiMzc1NTU2MDM5NjU3MzkwNTYxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e1588d57017106da5e1c3c8d81f01f3d02b524293a7f730fabc40ea8c53a5940 |
| hovercard-subject-tag | issue:2768416950 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/128469/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5d5aa1dd00afcd62a912be41a671def952e25393a80183d51cb4e308bc68801b/python/cpython/issues/128469 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5d5aa1dd00afcd62a912be41a671def952e25393a80183d51cb4e308bc68801b/python/cpython/issues/128469 |
| og:image:alt | Feature or enhancement Proposal: Right now, since we don't set RPATH, when using a shared libpython and running Python from the build directory, the library might resolve to the system, instead of ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | FFY00 |
| hostname | github.com |
| expected-hostname | github.com |
| None | fe4f38b24922a1ce81c1708c3793b47c185599b9144ab94f6ca846b00698058d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 42b6390c91978a16f9196c38c7a00e9bf21f37e7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width