I'm developing a CLI application with Python and I can install it with pip install -e . for an editable install, however this installs it only in the virtual environment.
I can't access the CLI from things like Ubuntu's custom keyboard shortcuts, or Thunar's custom keyboard shortcuts.
I can install everything globally instead, but this causes package version conflicts.
How can I expose my CLI globally, in an editable way, while managing dependencies in an isolated environment?
Do I need some wrapper script, manually added to the PATH, or is there a pip option for this?
/usr/bincreate a symlink to the CLI program in venv./usr/local/binyourself, or create an executable script, using yourpyproject.tomlfile. The latter will create the wrapper for you onpip install <myproject>.