Skip to content

Commit ecd395f

Browse files
authored
docs: link to PyRuntimeInfo and mention it has more than example shows (#3170)
Have the example that gets the python version also link to the provider. Also mention that more than just the version is available.
1 parent 33da6af commit ecd395f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/howto/get-python-version.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ my_rule = rule(
3535
)
3636
```
3737

38+
The `info` variable above is a {obj}`PyRuntimeInfo` object, which contains
39+
information about the Python runtime. It contains more than just the version;
40+
see the {obj}`PyRuntimeInfo` docs for its API documentation.
41+
3842
## Using the rule
3943

4044
In your `BUILD.bazel` file, you can use the rule like this:

0 commit comments

Comments
 (0)