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

pip install --editable does not support --target #3246

Closed
mitsuhiko opened this issue Nov 14, 2015 · 3 comments
Closed

pip install --editable does not support --target #3246

mitsuhiko opened this issue Nov 14, 2015 · 3 comments
Labels
auto-locked Outdated issues that have been locked by automation C: target pip install's --target option's behaviour handling type: bug A confirmed bug or unintended behavior

Comments

@mitsuhiko
Copy link
Contributor

For a plugin system I'm attempting to pip install --editable into a local path of my choice. For regular plugins I am installing with pip install --target and that works just fine, but for local development I want to do the same with egg links.

The target directly gets added to the pkg resources working set as well as as a site directory by myself, so I do not care about any of that stuff. All I need is --target to not fail. Right now it gives a bad internal error that --home is not supported as this is only allowed to install but not to develop which it invokes.

As a super shitty work around I do something like this right now:

$ PYTHONPATH='/target/path/' pip install --editable my/plugin/ --install-option='--install-dir=/target/path/' --no-deps

And then later on install the plugins' dependencies manually.

@mitsuhiko
Copy link
Contributor Author

In case you are curious why the hell I need this have a look at this: https://github.com/mitsuhiko/lektor/blob/16dab7df64bb18f8d7ebe5fcbf935f22629d8ba8/lektor/packages.py

It basically uses pip as a local helper system to install plugins for an application.

@piotr-dobrogost
Copy link

Already raised in issue #562

@xavfernandez xavfernandez added C: target pip install's --target option's behaviour handling type: bug A confirmed bug or unintended behavior labels Nov 24, 2015
@dstufft
Copy link
Member

dstufft commented Mar 24, 2017

Closing this as a duplicate of #562.

@dstufft dstufft closed this as completed Mar 24, 2017
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation C: target pip install's --target option's behaviour handling type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

4 participants