-
Notifications
You must be signed in to change notification settings - Fork 433
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
Command to run a command in a package virtualenv #434
Comments
One solution is to use the Would this work for you? |
Not really, I also have ipython installed through pipx 😅 |
So is the problem that you don't want aria2p installed with your normal ipython venv? Because a workaround would just be to pile everything you want into the same venv. |
Hmmm, this could be a solution, yes. But I find it a bit redundant to install aria2p both in its own venv and in the ipython venv. I mean, more redundant than installing ipython both in its own venv and in the aria2p venv, because what matters here is the aria2p version I'm using, not the ipython one: I want to play with aria2p's api, the same api that is used when I call directly the script |
Upgrading! 👍 Yes that's a challenge for injected packages. Good point. |
Hi @gaborbernat, is there a commit or PR you could reference? |
Ah, I guess it's #563 🙂 |
To re-state the original use-case:
I suppose there are other use cases where one would want to run an installed script in a given pipx venv, though I don't have any in mind. Anyway that was just to provide feedback, feel free to keep this issue closed. |
Sorry, didn't write, but IMHO this is out of scope for the project. Pipx environments are not meant to be changed by you, they are implementation details; as such, I'm -1 on allowing people to run custom commands in it. The only way these apps are meant to be used is through the console entry point we expose into your |
I see, thank you for the explanation! 👍 |
How would this feature be useful?
It would be useful when one wants to play a bit with the internals/api of a package in a Python interpreter.
Describe the solution you'd like
Instead of creating a venv myself, and install for example aria2p and ipython inside it, I would like to use pipx directly. I already installed aria2p with pipx, injected ipython in its venv, and now I would like to run ipython in this venv.
Describe alternatives you've considered
Creating a venv myself, or manually activating the venv of the pipx package. We could also consider adding a
shell
command (to activate the venv) instead of anotherrun
command.Do you think this is in the scope of pipx 🙂?
Thanks for the great project!
The text was updated successfully, but these errors were encountered: