Freeze the `_sysconfigdata_*` module
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 35.9k
- PR merge metrics
- PR metrics pending
Description
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:
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Tools/wasm/wasi.py at the referenced workaround around lines 226-227, then trace how the generated sysconfigdata* module is handled during the CPython build. Determine how freezing it should integrate with the existing standard-library freezing process; done means WASM artifacts no longer require manually setting PYTHONPATH to that module's directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, wasm
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100