-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
Freeze the _sysconfigdata_*
module
#131779
Comments
Is it better to freeze it? Or generate native code to extend |
I would like to keep things the same with |
I'd expect the build order to get complex - I'm pretty sure Then again, having a Although the frozen modules are there to improve startup time, so they have to balance binary size with likelihood of being imported. I don't know that |
It's not much of a pain really, it just depends on
I am not proposing to remove the
Right, that's a good point. It doesn't get loaded every time. Depending on how folks feel about it, we can either use the existing freeze infrastructure, or split it into an extension. |
We already have a |
Feature or enhancement
Proposal:
After generating
_sysconfigdata_*
, we could freeze it, like we do to the rest of the standard library.This should remove the necessity for workarounds such as having to manually set
PYTHONPATH
to the_sysconfigdata_*
directory when running WASM artifacts:cpython/Tools/wasm/wasi.py
Lines 226 to 227 in 151d1bf
It should also make it easier to build a fully self-contained statically-linked relocatable interpreter.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
The text was updated successfully, but these errors were encountered: