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

Unable to install command with plugin #134

Closed
jaraco opened this issue Apr 7, 2019 · 4 comments
Closed

Unable to install command with plugin #134

jaraco opened this issue Apr 7, 2019 · 4 comments

Comments

@jaraco
Copy link
Member

jaraco commented Apr 7, 2019

Consider the case where one might want to install tox with one or more plugins, such as tox-venv. I tried:

$ pipx install tox --spec='tox tox-venv'                                                                                                             
Invalid requirement: ''tox tox-venv''

"/Users/jaraco/.local/pipx/venvs/tox/bin/python -m pip install 'tox tox-venv' -q" failed

I find I can pass --spec=tox --spec=tox-venv and that does seem to work, but probably only because the latter spec is honored and happens to include tox in its dependencies.

I note that I can also simply pipx install tox, then subsequently ~/.local/pipx/venvs/tox/bin/pip install tox-venv, but that's not particularly friendly.

Should pipx provide another way to install a command with optional plugins?

@cs01
Copy link
Member

cs01 commented May 1, 2019

Does this do what you want?

pipx install tox
pipx inject tox tox-venv

@jaraco
Copy link
Member Author

jaraco commented May 1, 2019

Yes. I should RTFM. I think I only read about options to install because I was thinking about a "one-liner" use-case.

Would it make sense for install to have a --inject option that would allow install and injection in one go?

@cs01
Copy link
Member

cs01 commented May 1, 2019

Yeah that sounds like a good idea 👍

@dukecat0
Copy link
Member

dukecat0 commented Oct 3, 2023

This feature was added in #900.

@dukecat0 dukecat0 closed this as completed Oct 3, 2023
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

No branches or pull requests

3 participants