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
How to initialise an empty venv with no app? #920
Comments
This sounds like a packaging issue in you |
I'm not sure I agree with that. In my experience, when I install a package (local, or remote) it also makes sure any packages required by that package are installed, ie. those listed in the |
Looking at the source, it seems that a relatively easy way to achieve this would be to add an option to the
I also tried specifying the deps with
|
Maybe the |
|
How would this feature be useful?
I have a library package, and an app that uses the library package. Both are local-only, ie. I install them with
pip install /path/to/library
andpip install /path/to/app
I want to install
app
with pipx, but if I runpipx install /path/to/app
it fails becauselibrary
is not available.I can't see how I can install
library
into the app venv before installingapp
.Describe the solution you'd like
One possible workflow might be:
--include-apps
to create symlink(s) for the app into$HOME/.local/bin
In my use-case:
pipx init foo
pipx inject foo /path/to/library
pipx inject --include-apps foo /path/to/app
So, what I need is the some command to create an empty venv into which I can inject dependencies and apps (the
pipx init foo
in the example above)Describe alternatives you've considered
I have hacked a solution like this:
library
into the cowsay venvapp
into the cowsay venv with--include-apps
app
is now availableSuggestions for better ideas would be much appreciated.
The text was updated successfully, but these errors were encountered: