jaraco / pip-run

pip-run - dynamic dependency loader for Python
MIT License
137 stars 19 forks source link

Support executables installed to `bin`. #72

Closed jaraco closed 1 year ago

jaraco commented 1 year ago

In https://github.com/google/pytype/issues/1429 today, I learned that some libraries rely on the binaries installed by their dependencies (e.g. pytype depends on ninja). When installed with pip-run, these binaries aren't available on the path, so invoking them as a subprocess command will fail with a FileNotFoundError.

I have observed that pip does in fact install these binaries to bin/ in the target (on macOS and probably Linux, maybe Scripts/ on Windows). pip-run could add this path to PATH before invoking the subprocess, making these commands available.

jaraco commented 1 year ago

I've confirmed that pip installs to bin/ even on Windows.