Uh oh!
There was an error while loading. Please reload this page.
feat: provide access to arbitrary interpreters - #2507
Conversation
Run a specific interpreter: * `bazel run @rules_python//tools/run --@rules_python//python/config_settings:python_version=3.12` Run interpreter from a binary: * `bazel run @rules_python//tools/run --@rules_python//tools/run:bin=//my:binary`
$ bazel run //python/bin:repl $ bazel run //python/bin:repl --//python/bin:repl_dep=//python/runfiles
Uh oh!
There was an error while loading. Please reload this page.
aignas
left a comment
There was a problem hiding this comment.
I know this is still a draft, so take my suggestions with a grain of salt :)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I noticed that my `$(location //path/to:target)` wasn't getting expanded when writing a test. This patch fixes the issue by forwarding the already-expanded environment from the inner target to the outer target.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
rickeylev
commented
Feb 10, 2025
Implementation wise, I think this looks good. Just the cleanup as discussed needed |
philsc
commented
Feb 16, 2025
I don't think the changes here are causing the mypy failure 🤔 |
rickeylev
commented
Feb 16, 2025
re: mypy failures: Yeah, its unrelated. It started failing a couple days ago, but nobody has yet looked into why. |
rickeylev
commented
Feb 16, 2025
Ah, I got a bit excited and merged this a bit soon -- CHANGELOG.md updates are missing |
This was a forgotten part of the original PR (#2507) implementing it.
There are some use cases that folks want to cover here. They are
discussed in this Slack thread. The high-level summary is:
to minimize environmental issues.
so that they can use the correct interpreter.
This patch adds to @rickeylev's work from #2359 by adding docs
and a few integration tests.