Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command for cleanup of installed standalone python versions #1248

Closed
Gitznik opened this issue Feb 7, 2024 · 0 comments · Fixed by #1261
Closed

Command for cleanup of installed standalone python versions #1248

Gitznik opened this issue Feb 7, 2024 · 0 comments · Fixed by #1261
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Gitznik
Copy link
Contributor

Gitznik commented Feb 7, 2024

How would this feature be useful?

#1242 introduced the ability to have pipx download standalone python versions, if the requested python version is not available. Currently, there is no way through pipx to delete them again. Having a way for pipx to figure out which interpreters are still in use and delete the ones that aren't would be very useful for housekeeping.

Also see the discussions in the merge review of the feature for more information: #1243 (comment)

Describe the solution you'd like

A new command that checks the interpreters of the installed applications, compares it with the available standalone python versions and deletes the versions that are no longer in use.

Describe alternatives you've considered

Manually going to the PIPX_STANDALONE_PYTHON_CACHEDIR folder and removing python versions, hoping they are not used anymore.

@Gitznik Gitznik added the enhancement New feature or request label Feb 7, 2024
@Gitznik Gitznik added the help wanted Extra attention is needed label Feb 13, 2024
@Gitznik Gitznik self-assigned this Feb 21, 2024
@Gitznik Gitznik mentioned this issue Feb 22, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant