setup-python
setup-python copied to clipboard
Delete downloaded archive after extracting it during install
Description:
During a Python / Pypy / GraalPy installation, after the downloaded archive is extracted, it is not deleted. This leads to the archive taking up disk space, and often mistakenly getting archived together with the Python version.
This pull request ensures the downloaded archives are deleted after they are extracted and no longer needed.
Check list:
- [ ] Mark if documentation changes are required.
- [ ] Mark if tests were added or updated to cover the changes.
Comments suppressed due to low confidence (1)
src/install-python.ts:143
* [nitpick] Consider updating the log message to be consistent with the other installers (e.g., use 'Deleting downloaded archive...' as in install-pypy.ts and install-graalpy.ts).core.info('Delete downloaded archive');
Since the install-python.ts workflow follows this convention (Download from {url}, Extract downloaded archive, Execute installation script) I decided to keep using the same convention for that workflow.