Repository navigation
Remove outdated Tools/scripts/ example scripts #97669
Description
Activity
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on Sep 30, 2022 analyze_dxp.py: I created issue #97670 to remove the sys.getdxp() function and the Tools/scripts/analyze_dxp.py script.
See also issue #97649: Do not install Tools directory on Windows.
I created PR #97675 to remove a first batch of outdated example scripts.
@warsaw @gpshead @gvanrossum: Would you mind to approve formally this PR since you are in favor of removing Tools/scripts/ scripts according to your messages on https://discuss.python.org/t/remove-outdated-tools-scripts-scripts/19571?
- added a commit that references this issue
on Oct 4, 2022 I created a draft PR #97963 to create a new Tools/build/ sub-directory which contains scripts used to build Python. I moved 13 scripts there. Not sure if it's a good idea or not.
With PR #97963 and PR #97964, the remaining scripts in Tools/scripts/ are:
Programs (3):
- 2to3
- idle3
- pydoc3
Scripts (19):
- abitype.py
- checkpip.py
- combinerefs.py
- eptags.py
- gprof2html.py
- md5sum.py
- nm2def.py
- patchcheck.py
- pathfix.py
- pep384_macrocheck.py
- ptags.py
- reindent.py
- run_tests.py
- startuptime.py
- summarize_stats.py
- untabify.py: used by patchcheck.py
- var_access_benchmark.py
- verify_ensurepip_wheels.py
- win_add2path.py
patchcheck.py,run_tests.pyandverify_ensurepip_wheels.pyare used by the Python workflow. Does it deserve its own sub-directory?I created PR #97964 to move diff.py and ndiff.py scripts to the difflib documentation (to
Doc/includes/).- added a commit that references this issue
on Oct 7, 2022 Oh nice, 4ed00be removed eptags.py and ptags.py.
Reacted by Gregory P. Smith- added 5 commits that reference this issue
on Oct 11, 2022 Updated list of Tools/scripts/ scripts. With PR #97963, there are only 8 remaining scripts.
Programs (3):
- 2to3
- idle3
- pydoc3
Misc (5):
- checkpip.py
- combinerefs.py: I started a discussion about this script
- run_tests.py
- summarize_stats.py
- var_access_benchmark.py: see issue Move Benchmarks From Tools/ to the pyperformance Repo #97680
Update: I moved verify_ensurepip_wheels.py to Tools/build/ in my PR #97963.
- added 2 commits that reference this issue
on Oct 14, 2022 - added a commit that references this issue
on Oct 17, 2022 I moved 16 scripts to a new Tools/build/ directory: 1863302
There are 9 remaining files in Tools/scripts/, including the README file (so 8 scripts):
2to3 checkpip.py combinerefs.py idle3 pydoc3 README run_tests.py summarize_stats.py var_access_benchmark.py- added a commit that references this issue
on Oct 17, 2022 I removed enough scripts, I close the issue :-)
The Tools/scripts/ directory contains more than 70+ example scripts. Most of them are outdated and short scripts Python which are simple to rewrite. When I asked other core developers, they suggest to remove all of them, see the discussion:
https://discuss.python.org/t/remove-outdated-tools-scripts-scripts/19571
I created this issue to look into these scripts and see what to do with them.