Change shebangs with Tools/scripts/pathfix.py?
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- build-system, documentation
Research direction
Start by reading the guide's existing shebang sections and inspect /usr/lib64/python3.6/Tools/scripts/pathfix.py, including its directory filename matching and direct-file behavior. Review the 23-comment discussion to determine whether the guide should recommend the example invocation or whether automatic RPM-build use is still in scope. Done means the chosen documentation scope is resolved and the relevant guide text reflects it.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Python
- Stars
- 4
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
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.
More from fedora-python/python-rpm-porting
-
fedora-python/python-rpm-porting#26 · 1 assignee ·
All issues in fedora-python/python-rpm-porting
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
learningequality/ricecooker#747 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
run-llama/llama_index#23199 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
KhronosGroup/glTF-Blender-IO#2769 ·