Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Locate ruff executable in 'bin' directory as installed by 'pip instal…
…l --target'. (#11450) Fixes #11246 ## Summary This change adds an intermediate additional search path for `find_ruff_bin`. I would have added this path as the last one, except that the last one is the one reported to the user, so I made this one second to last. ## Test Plan It's shown to work with this command: ``` ~ @ pip-run git+https://github.com/jaraco/ruff@feature/honor-install-target-bin -- -m ruff --version ruff 0.4.4 ``` I tried running the same command on Windows, which should work in theory, but building ruff from source on Windows is complicated. Even after installing Rust, ruff fails to build when `libmimalloc-sys` fails to build because `gcc` isn't installed (and the error message points to a [broken anchor](https://github.com/rust-lang/cc-rs#compile-time-requirements)). I was really hoping Rust would get us away from the Windows as second-class-citizen model :(.
- Loading branch information