Bug 1571474

Summary: With the removal of tools package, we may have lost some important things
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python3Assignee: Miro Hrončok <mhroncok>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: bkabrda, cstratak, dmalcolm, mhroncok, pviktori, rkuska, shcherbina.iryna, tomspur, torsava
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python3-3.7.0-8.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-29 09:58:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Miro Hrončok 2018-04-24 22:50:16 UTC
We have quite recently removed the tools package and the tools from within.
I now needed to use the pygettext.py (mentioned in the docs[1]) and it is gone.

[1] https://docs.python.org/3/library/gettext.html


This is a list of things that python2-tools has, with explanations:

$ rpm -ql python2-tools | grep ^/usr/bin | grep -v 2
/usr/bin/idle                 moved to python3-idle
/usr/bin/msgfmt.py            GONE
/usr/bin/pygettext.py         GONE
/usr/bin/pynche               GONE
/usr/bin/smtpd.py             is in /usr/lib64/python3.6/smtpd.py

While I doubt the usefulness of pynche; msgfmt.py and pygettext.py are mentioned in tutorials, docs, stack overflow answers, etc.

I think we should reintroduce msgfmt3{,.6}.py and pygettext3{,.6}.py in /usr/bin trough python3-devel. Also, we might want to talk to upstream to make this work trough python3 -m gettext (or python3 -m gettext.msgfmt respectively).

Thoughts?

Comment 1 Petr Viktorin (pviktori) 2018-04-24 22:55:25 UTC
+1

Comment 2 Charalampos Stratakis 2018-04-25 14:23:20 UTC
Agree.

Comment 4 Miro Hrončok 2018-07-26 12:34:16 UTC
PR: https://src.fedoraproject.org/rpms/python3/pull-request/47