Hi,

Some background on pathfix.py. On Fedora, pathfix.py is available as
/usr/bin/pathfix.py but also /usr/bin/pathfixX.Y.py where X.Y is the
Python version (ex: pathfix3.10.py). So it's an executable program
(implemented in Python).

Yep, I just removed pathfix.py from Python 3.12, as part of the larger
change removing most old "example scripts" of Tools/scripts/
sub-directory. Miro gave links to discussions and the issue.

pathfix.py maintenance looks mostly quiet over 28 years (1994-2022).
The script was created at Aug 19, 1994. Main changes (ignoring coding
style and typo changes):

* 2006: Changed logic so it now replaces anything that has #! and
python in the first line, replacing the entire line.
* 2009: Port to Python 3
* 2010: Add -p option to preserve timestamp
* 2018: Add -n option to disable backup
* 2019:

  - Add -k option to preserve flags
  - Add -a option to add flags
  - Fix for Python scripts whose name contain a dash ("-")

In 2018 and 2019, 3 new flags were added by Fedora: Red Hat employees
of my team :-) The latest commit was in October 2019: 3 years ago.

---

I like option (2): add the script to the python-rpm-macros component.

Since it's mostly used by Python RPM macros, IMO it makes sense to
ship it with python-rpm-macros which already provides 2 other Python
scripts (compileall2.py and import_all_modules.py).

I don't think that anyone need /urs/bin/pathfix.py, outside people
working on packaging (who can use Python RPM macros), so it can be
removed (moved to a different directory).

If someone really wants pathfix.py, a copy a be found at:
https://github.com/gvanrossum/old-demos/blob/main/scripts/pathfix.py

Victor
_______________________________________________
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

Reply via email to