Skip to content

[3.15] gh-104612: Document linking embedders for several Python versions (GH-162498) - #162760

Merged
itamaro merged 1 commit into
python:3.15from
miss-islington:backport-cb9d78f-3.15
Nov 27, 2026
Merged

itamaro merged 1 commit into
python:3.15from
miss-islington:backport-cb9d78f-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Add a section to the embedding guide that explains, for Linux, that linking with pythonX.Y-config --ldflags --embed ties an application to one minor version even when it only uses the Limited API, and how a single binary can instead load libpython3.so at run time. Mention renaming the dependency with patchelf as a packaging workaround, and list the limitations of both approaches.

Related discussion: https://discuss.python.org/t/on-embedders-and-stable-abi/110197
(cherry picked from commit cb9d78f)

Co-authored-by: Itamar Oren itamarost@gmail.com

…ns (pythonGH-162498)

Add a section to the embedding guide that explains, for Linux, that linking with `pythonX.Y-config --ldflags --embed` ties an application to one minor version even when it only uses the Limited API, and how a single binary can instead load `libpython3.so` at run time. Mention renaming the dependency with `patchelf` as a packaging workaround, and list the limitations of both approaches.

Related discussion: https://discuss.python.org/t/on-embedders-and-stable-abi/110197
(cherry picked from commit cb9d78f)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
@read-the-docs-community

Copy link
Copy Markdown

@itamaro
itamaro merged commit d45a62a into python:3.15 Nov 27, 2026
95 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Nov 27, 2026
@miss-islington
miss-islington deleted the backport-cb9d78f-3.15 branch November 27, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants