issues with userpath dependency
See original GitHub issueI have some issues with the direct and hard dependency on userpath
.
The main issue is the dependency on a separate top level python CLI tool: I use pipx
to wrap ALL python CLI tools (that are not available in a package manager, i.e. homebrew). The setup instructions for pipx now require a separate python CLI tool which I ideally would have installed through pipx itself (pipx install userpath
).
When installing via homebrew, only pipx
binaries are added to the PATH- cli tools from dependencies are not added. Since I don’t install any python packages globally (pip freeze
is empty), I can’t run python3 -m userpath ...
.
I recommend either:
-
make
userpath
a subcommand ofpipx
similar toensurepath
OR -
taking the approach of pyenv and several other libraries out there of telling users to pipe the command into their shell profile:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bash_profile
- Zsh note: Modify your ~/.zshenv file instead of ~/.bash_profile.
- Ubuntu and Fedora note: Modify your ~/.bashrc file instead of ~/.bash_profile
Issue Analytics
- State:
- Created 4 years ago
- Comments:20 (15 by maintainers)
Top GitHub Comments
Pipx ensurepath would come back and be the canonical method for all platforms and packaging tools. Its implementation would be userpath, but the user would not know or care.
@jaraco @cs01 lets try once to create the
userpath
homebrew package that pipx can depend on since this seems to be the cleanest solution. if there are issues with the notability requirements we can move forward with thepipx ensurepath
?I dropped a comment here inquiring: https://github.com/Homebrew/homebrew-core/pull/39483#issuecomment-489444236