Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-97669: Remove outdated example scripts (#97675) #98167

Merged
merged 2 commits into from
Oct 11, 2022
Merged

gh-97669: Remove outdated example scripts (#97675) #98167

merged 2 commits into from
Oct 11, 2022

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Oct 10, 2022

Remove outdated example scripts of the Tools/scripts/ directory:

  • gprof2html.py
  • md5sum.py
  • nm2def.py
  • pathfix.py
  • win_add2path.py

Remove test_gprof2html, test_md5sum and test_pathfix of test_tools.

Remove outdated example scripts of the Tools/scripts/ directory:

* gprof2html.py
* md5sum.py
* nm2def.py
* pathfix.py
* win_add2path.py

Remove test_gprof2html, test_md5sum and test_pathfix of test_tools.
@vstinner
Copy link
Member Author

gprof2html.py

Created in 2002 by @gvanrossum. Following changes are mostly coding styles changes, no feature or bugfix.

I didn't use gprof format for a long time. There are now many tools to profile programs with nice UI. I don't think that maintaining such tool in Python with a HTML output is still relevant today.

md5sum.py

If someone wants such feature as part of Python, I would suggest to add a command line interface (CLI) to the hashlib module instead.

The script doesn't support multithreading, whereas Python releases the GIL in hashlib. The script uses the old getopt module.

@gvanrossum wrote in 2001:

This is a trivial command line utility to print MD5 checksums.
I published it on the web as http://www.python.org/2.1/md5sum.py
so I thought I might as well check it in.

Well, I don't think that it's still relevant in 2022. There are now many ways to easily distribute Python scripts (pip, GitHub, whatever works).

nm2def.py

Helpers to extract symbols from Unix libs and auto-generate
Windows definition files from them. Depends on nm(1). Tested
on Linux and Solaris only (-p option to nm is for Solaris only).

@malemburg: if you still use this script, it should be maintained outside Python. Python doesn't use it.

pathfix.py

@hroncok: Script used by Fedora, see: https://discuss.python.org/t/remove-outdated-tools-scripts-scripts/19571/35

It can be maintained somewhere else.

win_add2path.py

Not used by the Windows installer: https://discuss.python.org/t/remove-outdated-tools-scripts-scripts/19571/20

Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kill 'em with fire!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants