GeezerVison is showing github.com — Remove outdated Tools/scripts/ example scripts · Issue #97669 · python/cpython
Remove outdated Tools/scripts/ example scripts #97669DescriptionThe 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. Activityvstinner 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 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):
- 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?
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/). vstinner commented on Oct 10, 2022 Oh nice, 4ed00be removed eptags.py and ptags.py. Reacted by Gregory P. Smith 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 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. 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):
2to3
checkpip.py
combinerefs.py
idle3
pydoc3
README
run_tests.py
summarize_stats.py
var_access_benchmark.py
vstinner commented on Nov 3, 2022 I removed enough scripts, I close the issue :-)
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|