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:
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.py and verify_ensurepip_wheels.py are used by the Python workflow. Does it deserve its own sub-directory?
Activity
vstinner commented 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.
vstinner commented on Sep 30, 2022
See also issue #97649: Do not install Tools directory on Windows.
vstinner commented on Sep 30, 2022
I created PR #97675 to remove a first batch of outdated example scripts.
vstinner commented on Oct 3, 2022
@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?
gh-97669: Remove outdated example scripts (#97675)
vstinner commented on Oct 6, 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):
Scripts (19):
patchcheck.py, run_tests.py and verify_ensurepip_wheels.py are used by the Python workflow. Does it deserve its own sub-directory?
vstinner commented on Oct 6, 2022
I created PR #97964 to move diff.py and ndiff.py scripts to the difflib documentation (to Doc/includes/).
gh-97669: Move difflib examples to Doc/includes/ (#97964)
vstinner commented on Oct 10, 2022
Oh nice, 4ed00be removed eptags.py and ptags.py.
vstinner commented on Oct 10, 2022
PR to remove 5 more scripts: PR #98167
PR to remove abitype.py and pep384_macrocheck.py: PR #98165
pythongh-97669: Move difflib examples to Doc/includes/ (python#97964)
gh-97669: Remove outdated example scripts (#97675) (#98167)
gh-97669: Remove abitype.py and pep384_macrocheck.py (#98165)
gh-97669: Create Tools/patchcheck/ directory (#98186)
gh-97669: Fix test_tools reference leak (#98216)
gh-97669: Remove Tools/scripts/startuptime.py (#98214)
vstinner commented on Oct 12, 2022
Updated list of Tools/scripts/ scripts. With PR #97963, there are only 8 remaining scripts.
Programs (3):
Misc (5):
Update: I moved verify_ensurepip_wheels.py to Tools/build/ in my PR #97963.
Merge branch 'main' into typewatch
Merge branch 'main' into cached_property
gh-97669: Create Tools/build/ directory (#97963)
vstinner commented 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):
Merge branch 'main' into typewatch
vstinner commented on Nov 3, 2022
I removed enough scripts, I close the issue :-)