-
Notifications
You must be signed in to change notification settings - Fork 439
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
Store pipx data in platform-specific user directories #1001
Conversation
Co-authored-by: chrysle <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. @uranusjr could you take a look?
How does this affect existing installations? I feel we should add something in the documentation for this. Even if existing installations are not affected at all (i.e. will continue to use the old paths), we should add some notes to guide migration if users want to use the new paths. |
Existing installations should not be affected.
Do you have any suggestions on where to put the note? |
Since paths in docs have been changed to the new locations, maybe we can frame this as a potential question a user may have, e.g. files are not at the expected locations. An entry in Troubleshooting can explain why that is the case, it should not affect functionalities, provide a table to map old and new paths, and explain how to migrate if the user inclines (I assume by exporting and reinstalling all apps?) |
Would it be better to add a new command/flag to handle the path change, or should it be done manually? |
I think that's not worth it... Most users will upgrade their |
Co-authored-by: chrysle <[email protected]>
Co-authored-by: chrysle <[email protected]>
Co-authored-by: Tzu-ping Chung <[email protected]>
Co-authored-by: Jason Lam <[email protected]>
Thanks for the PR! |
docs/changelog.md
Summary of changes
Store pipx data in platform-specific user directories using platformdirs.
e.g. on Linux/Unix
~/.local/pipx/logs
->$XDG_STATE_HOME/pipx/logs
~/.local/pipx/shared
->$XDG_DATA_HOME/pipx/shared
~/.local/pipx/venvs
->$XDG_DATA_HOME/pipx/venvs
~/.local/pipx/.trash
->$XDG_DATA_HOME/pipx/trash
~/.local/pipx/.cache
->$XDG_CACHE_HOME/pipx
If
~/.local/pipx
exists, revert to old behavior.Fixes #722
Test plan
Tested by running
Results