Skip to content

Add PyInitConfig to ffi crate#6152

Open
Person-93 wants to merge 4 commits into
PyO3:mainfrom
Person-93:ffi-pyinitconfig
Open

Add PyInitConfig to ffi crate#6152
Person-93 wants to merge 4 commits into
PyO3:mainfrom
Person-93:ffi-pyinitconfig

Conversation

@Person-93

Copy link
Copy Markdown
Contributor

Starting with python 3.14, an embedded python interpreter can be initialized from a config.
https://docs.python.org/3/c-api/init_config.html

This PR adds that part of the API to the FFI crate.
https://github.com/python/cpython/blob/ebf955df7a89ed0c7968f79faec1de49f61ed7cb/Include/cpython/initconfig.h#L286-L327

@davidhewitt davidhewitt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks

@davidhewitt davidhewitt added this pull request to the merge queue Jun 26, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 26, 2026
@Person-93

Copy link
Copy Markdown
Contributor Author

Most of the failed status checks seem to be because curl fails on github's action runners.

There's one which I'm not sure what happened. https://github.com/PyO3/pyo3/actions/runs/28223256438/job/83609388896

It seems the interpreter in wasm is not finding the python standard library files. I don't understand how my changes would cause that. Please help.

@davidhewitt

Copy link
Copy Markdown
Member

we've had some flake with crates.io on a number of jobs recently, hopefully stabilises soon.

The wasm job looks broken on main, I'll investigate.

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