Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Change shebangs with Tools/scripts/pathfix.py?

オープン
#24 コメント 23 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python

調査の方向性

まずガイドに既にある shebang セクションを読み、/usr/lib64/python3.6/Tools/scripts/pathfix.py を調べます。ディレクトリ内のファイル名のマッチングと、ファイルを直接指定した場合の動作も確認してください。23 件のコメントがある議論を確認し、ガイドで呼び出し例を推奨すべきか、それとも RPM-build での自動利用もまだ対象範囲に含めるべきかを判断します。選択したドキュメントの対象範囲が確定し、関連するガイドの文面に反映されれば完了です。

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

説明

enhancement

There is a script in /usr/lib64/python3.6/Tools/scripts/pathfix.py that changes shebangs. We may want to:

  • recommend that in the shebang sections of this guide
  • use it automagically in rpm builds to fix shebangs? (with similar logic to pybytecompile script)

I'm opening this here, because of the first above point. If we say we want to use this automatically, we can discuss this in some ML.

Example usage:

%install
...
%{python3_sitearch}/Tools/scripts/pathfix.py -i "%{__python3} -s" -p %{buildroot}%{_bindir}/*

Note: A small problem with this script is that it only converts files where the name matches r'^[a-zA-Z0-9_]+\.py$' when called on directory, but you can call it directly on files.

主要言語
Python
スター
4
フォーク
4
PR マージ指標
30日以内にマージされた PR はありません

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

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

fedora-python/python-rpm-porting のほかの issue

fedora-python/python-rpm-porting の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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