-
Notifications
You must be signed in to change notification settings - Fork 385
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
Add pip bin to support ansible pip module installation #1334
Labels
enhancement
New feature or request
Comments
Maybe we should add a special case (say |
looks great |
Just double confirm about the enhancement here, maybe we should add an option |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How would this feature be useful?
I'm using ansible to inject new dependencies for package in pipx,
for example installing
jmespath
for pipxansible-core
I've noticed that the
venv
created bypipx
is different and uses shared forpip
,so there is no pip command in
bin
pathshared bin path
env
ansible-core
bin pathDescribe the solution you'd like
This is a problem for the
ansible.builtin.pip
module,as it can't use calls like 'python -m pip', but only the
pip
command,Maybe add a soft link to
pip
command for pipx venv to reach compatibility?Here's an ansible example
output
case1
test1
success, case2ansible-core
fail, becausetest1
added the pip command.$ . /usr/local/py-utils/venvs/test1/bin/activate (test1) $ which pip /usr/local/py-utils/venvs/test1/bin/pip
Describe alternatives you've considered
Currently I'm using a bash wrapper script that will emulate the python -m pip command, not sure if there are any other issues with that.
The text was updated successfully, but these errors were encountered: