Add ability to filter out results of `shutil.which` by `os.stat_result.st_flags`
オープン
まだ誰も着手していません。
stdlib
type-feature
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 36k
- PR マージ指標
- PR 指標を取得中
説明
Feature or enhancement
Add ability to filter out results of https://docs.python.org/3/library/shutil.html#shutil.which by https://docs.python.org/3/library/os.html#os.stat_result.st_flags
Pitch
- https://en.wikipedia.org/wiki/System_Integrity_Protection
- https://github.com/pypa/hatch/issues/701#issuecomment-1374595003
Basically, it is desirable to call/use a version of an installed executable that is not restricted by macOS SIP such as when modifying linker environment variables.
Previous discussion
Somewhat related https://github.com/python/cpython/issues/76528
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
shutil.which と os.stat_result.st_flags のドキュメントから始め、リンクされている macOS SIP および過去の議論に関する issue を確認してください。想定されているフィルタリングインターフェースとプラットフォーム固有の動作を判断し、そのうえで、実行可能ファイルの選択によって要求された st_flags のケースが除外され、他のプラットフォームは変更されないことを検証してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- operating-systems
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100