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

Fix local plugin installation #1129

Merged
merged 3 commits into from Apr 16, 2023

Conversation

dairiki
Copy link
Contributor

@dairiki dairiki commented Apr 16, 2023

The most recent version of pip (23.1) removes support for the --install-option parameter to pip install. This breaks our install_local_package function, which uses --install-option because pip install --target didn't used to work with pip install --editable.

As it turns out, recent versions of pip support the use of --target with --editable. So here we make use of that.

Note that this also relieves us of the need to parse our local plugin requirements ourselves (thus, hopefully, fixing e.g. #865.)

Issue(s) Resolved

Fixes #1127

Related Issues / Links

This is a (more minimal) alternative to PR #1128.

Description of Changes

  • Added unit test(s) covering the changes (if testable)
    We did not have a test that detects the breakage caused by the recent pip update. We now have one.

@dairiki dairiki mentioned this pull request Apr 16, 2023
2 tasks
@dairiki dairiki force-pushed the fix.1127-pip-breakage branch 2 times, most recently from 5760dc4 to e7db062 Compare April 16, 2023 15:37
The most recent version of pip (23.1) removes support for the
`--install-option` parameter to `pip install`.  This breaks our
`install_local_package` function, which uses `--install-option`
because `pip install --target` didn't used to work with `pip install
--editable`.

As it turns out, recent versions of pip support the use of `--target`
with `--editable`.  So here we make use of that.

Note that this also relieves us of the need to parse our local
plugin requirements ourselves (thus, hopefully, fixing lektor#865.)
@dairiki dairiki merged commit 24c39ab into lektor:3.3-maintenance Apr 16, 2023
@dairiki dairiki deleted the fix.1127-pip-breakage branch April 22, 2023 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant