Skip to content

Document and test PyO3 embedding on Linux - #4460

Merged
UebelAndre merged 1 commit into
bazelbuild:mainfrom
finn-ball:finn/pyo3-embedding-upstream
Nov 25, 2026
Merged

UebelAndre merged 1 commit into
bazelbuild:mainfrom
finn-ball:finn/pyo3-embedding-upstream

Conversation

@finn-ball

Copy link
Copy Markdown
Contributor

Document how to use the selected CPython version for the pyo3-ffi build script and link libpython at the embedding executable. Python extensions can use the same PyO3 crates without acquiring a direct libpython dependency.

Add a Linux regression test that checks which library the executable loads and inspects the extension’s dynamic dependencies.

Related to #3889.

@UebelAndre UebelAndre left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Just to double check though, this isn't adding anything other than introducing a test and some docs?

@finn-ball

Copy link
Copy Markdown
Contributor Author

Nope, just adds something into the docs with an example to make it clearer this wiring exists.

@finn-ball finn-ball changed the title Support PyO3 embedding on Linux Document and test PyO3 embedding on Linux Nov 25, 2026
@finn-ball
finn-ball force-pushed the finn/pyo3-embedding-upstream branch from cd4a3da to 6051a44 Compare November 25, 2026 19:21

@UebelAndre UebelAndre left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@UebelAndre
UebelAndre enabled auto-merge November 25, 2026 19:26
@UebelAndre
UebelAndre added this pull request to the merge queue Nov 25, 2026
Merged via the queue into bazelbuild:main with commit 17a9e16 Nov 25, 2026
3 checks passed
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