python / python/cpython

Configure-based build system doesn't have a documented way to disable modules like setup.py did

オープン
#98,558 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

build type-feature
主要言語
Python
スター
77.2k
フォーク
36k
平均マージ
1日 9時間
マージ済み PR(30日)
558

説明

Feature or enhancement

To provide the ability to disable modules in the configure-based build system like the now removed setup.py did.

Pitch

Until the removal of setup.py, it was possible to disable modules by editing DISABLED_MODULE_LIST.

https://github.com/python/cpython/blob/dcb342b5f9d931b030ca310bf3e175bbc54df5aa/setup.py#L60-L61

In the past I used this to disable _tkinter.

In the configure based system, this is still possible but relies on internal variable names. I can pass py_cv_module__tkinter=disabled to ./configure. It would be useful to have something that was documented rather than having to rely on internal variables like that.

Previous discussion

Not yet, but can do if desired.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、リンクされている setup.py の行と、py_cv_module__tkinter=disabled を指定した、文書化されている ./configure の呼び出し周辺の configure ベースのビルドフローを確認します。モジュールを無効化するためのサポート対象インターフェースをどこに文書化すべきか、またそれがカバーすべき既存の動作を特定します。内部変数名に依存せずにユーザーがモジュールを無効化でき、文書がサポート対象のプロセスを反映していれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
build-system
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。