Skip to content
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

Installing plugins with pip on modern Python #1582

Open
progval opened this issue Jul 20, 2024 · 2 comments
Open

Installing plugins with pip on modern Python #1582

progval opened this issue Jul 20, 2024 · 2 comments

Comments

@progval
Copy link
Owner

progval commented Jul 20, 2024

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.

@Mikaela
Copy link
Contributor

Mikaela commented Aug 4, 2024

Is it possible to use pipx instead?

@progval
Copy link
Owner Author

progval commented Aug 4, 2024

Hmm, good point, it does remove the hassle of dealing with virtualenvs.

However, it doesn't seem to have a way to use a system-wide limnoria: pipx install --system-site-packages limnoria would still install Limnoria itself (but give it access to system packages)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants