setup-python icon indicating copy to clipboard operation
setup-python copied to clipboard

Delete downloaded archive after extracting it during install

Open darktohka opened this issue 11 months ago • 1 comments

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.

darktohka avatar Apr 21 '25 10:04 darktohka

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.

darktohka avatar Apr 21 '25 10:04 darktohka