On 11. 10. 22 11:47, Miro Hrončok wrote:
Hello Pythonistas,
The pathfix.py script has been removed from future Python 3.12:
https://discuss.python.org/t/remove-outdated-tools-scripts-scripts/19571
https://github.com/python/cpython/pull/98167
In Fedora, we package it to python3-devel as /usr/bin/pathfix.py and we use it
in:
%py3_shebang_fix
%pyproject_install
We also use it in python3.X %install section (directly from upstream source).
Somebody asked me how we use this.
1) %pyproject_install pretty much delegates to %py3_shebang_fix
2) %py3_shebang_fix uses /usr/bin/pathfix3.X.py to fix shebangs as described in
https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_shebangs
It can be used by packagers directly or via %pyproject_install.
3) Python %install uses it to change shebangs of the standard library to
#!/usr/bin/python3.X:
https://src.fedoraproject.org/rpms/python3.11/blob/f35/f/python3.11.spec#_920
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org
Do not reply to spam, report it:
https://pagure.io/fedora-infrastructure/new_issue