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
pipx run runs binaries in an isolated virtualenv. however, it would be useful sometimes to be able to include other directories in the sys path (e.g. an active virtualenv). for standalone tools (e.g. installed with pipx install) you can inject packages into the tool's virtualenv, but it would be helpful to be able to do this dynamically.
Describe the solution you'd like
at least one of the two following additions to pipx run:
allow PYTHONPATH env variable to be propagated to the binary
add a --sys-path CLI flag which specifies additional sys paths to add to the binary's sys path.
Describe alternatives you've considered
the PYTHONPATH method could also work for standalone binaries. although the use case there is similar to just installing via pip, the difference between doing is this way and just using pip install is that pip install can pollute your global site packages, whereas this method could dynamically update sys path based on environment
The text was updated successfully, but these errors were encountered:
How would this feature be useful?
pipx run
runs binaries in an isolated virtualenv. however, it would be useful sometimes to be able to include other directories in the sys path (e.g. an active virtualenv). for standalone tools (e.g. installed withpipx install
) you can inject packages into the tool's virtualenv, but it would be helpful to be able to do this dynamically.Describe the solution you'd like
at least one of the two following additions to
pipx run
:--sys-path
CLI flag which specifies additional sys paths to add to the binary's sys path.Describe alternatives you've considered
the PYTHONPATH method could also work for standalone binaries. although the use case there is similar to just installing via
pip
, the difference between doing is this way and just usingpip install
is thatpip install
can pollute your global site packages, whereas this method could dynamically update sys path based on environmentThe text was updated successfully, but these errors were encountered: