Replies: 1 comment 2 replies
-
This documentation suggests that the path to the interpreter can be accessed by setting the toolchain as follows and using the genrule(
name = "test_current_py_toolchain",
srcs = [],
outs = ["out.txt"],
cmd = "$(PYTHON3) --version > $(location out.txt)",
toolchains = ["//python:current_py_toolchain"],
) However, this gives me the error that the package genrule(
name = "test",
cmd = "$$(realpath $(location @python_3_11_3//:python3)) --version > $(RULEDIR)/out.txt",
tools = ["@python_3_11_3//:python3"],
outs = ["out.txt"]
) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Given that I have the following content inside of my MODULE.bazel, how can I get the path to the specified Python interpreter?
For example, inside of a
configure_make
rule such as:Beta Was this translation helpful? Give feedback.
All reactions