You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a normal virtualenv, this would be fine as the activate script prepends $VIRTUAL_ENV/bin to the PATH. However, with pipx this does not happen, which leads to either not finding the command, or using in incompatible version that happens to be installed on the system.
Using --include-deps works somewhat, but overwrites any version installed elsewhere the system. It also breaks with the --suffix feature, as the binaries now no longer have the expected name.
Describe the solution you'd like
Some way of ensuring that the command has access to the binaries from it's virtualenv in it's PATH
Describe alternatives you've considered
Patching or wrapping the application to prepend $VIRTUALENV/bin to PATH, if it exists
Patching the application to be able to override the path of all commands it executes
The text was updated successfully, but these errors were encountered:
How would this feature be useful?
There are some tools which, despite being python, do not offer a stable API for certain actions. One such example would be the way that
molecule
usesansible-playbook
: https://github.com/ansible/molecule/blob/main/src/molecule/provisioner/ansible_playbook.py#L90In a normal virtualenv, this would be fine as the activate script prepends
$VIRTUAL_ENV/bin
to thePATH
. However, with pipx this does not happen, which leads to either not finding the command, or using in incompatible version that happens to be installed on the system.Using
--include-deps
works somewhat, but overwrites any version installed elsewhere the system. It also breaks with the--suffix
feature, as the binaries now no longer have the expected name.Describe the solution you'd like
Some way of ensuring that the command has access to the binaries from it's virtualenv in it's PATH
Describe alternatives you've considered
$VIRTUALENV/bin
toPATH
, if it existsThe text was updated successfully, but these errors were encountered: