Closed viscruocco closed 1 month ago
After some consideration I noticed that the log files should also be written into the global directories instead of ~/.local
. As mentioned above ~/.local
might not be writeable after all. Since there is no configuration variable for the log directory it would be especially problematic to place it outside of PIPX_HOME. (The same goes for the cache and trash directories.)
Encountering similar bug/behavior with pipx --global upgrade <spec> --install
, but it does install apps to ~/.local/bin/
even though they are already found in /usr/local/bin
.
[...]
pipx --global upgrade <spec> --install
[...]
That's most likely related to https://github.com/pypa/pipx/issues/1443. Try putting --global
after upgrade
instead:
pipx upgrade --global <spec> --install
Describe the bug
When executing
pipx install --global
:/opt/pipx/venvs
and the binaries and manual pages to/usr/local/bin
and/usr/local/man
.~/.local/share/pipx
.~/.local/bin
and~/.local/share/man
directories are created. (This can be a problem if there are no write permissions to~/.local
, e.g. in a docker container without a proper user home directory.)How to reproduce
Expected behavior