Freeze the `_sysconfigdata_*` module
オープン
まだ誰も着手していません。
build
OS-wasi
topic-installation
topic-sysconfig
type-feature
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず Tools/wasm/wasi.py の226-227行付近にある参照先の workaround から始め、CPython のビルド中に生成された sysconfigdata* モジュールがどのように扱われるかを追跡します。これをフリーズする処理を既存の標準ライブラリのフリーズ処理にどのように統合すべきかを確認します。WASM アーティファクトで、対象モジュールのディレクトリを PYTHONPATH に手動で設定する必要がなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python, wasm
- 領域
- build-system
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100