Limnoria icon indicating copy to clipboard operation
Limnoria copied to clipboard

Installing plugins with pip on modern Python

Open progval opened this issue 7 months ago • 2 comments

Since version 2020.05.08, Limnoria supports installing plugin with pip, so users don't have to deal with Git repositories and adding extra plugin directories.

We also recommend people install Limnoria with their package manager, so it is kept up to date along with the rest of the distribution.

Unfortunately, recent Python versions (eg. as shipped on Debian 12) don't allow running pip outside a virtualenv. This means that we need to document somewhere how to use a system-installed Limnoria along with local plugins. This can take two forms:

  1. create a virtualenv with --system-site-packages (so the system's Limnoria can be found), install plugins, then restart Limnoria in that venv
  2. configure $PYTHONPATH to </path/to/venv>/lib/python3.XX/site-packages

Option 1 is inconvenient, option 2 will break on the next Python update.

progval avatar Jul 20 '24 20:07 progval