xref: /aosp_15_r20/external/bazelbuild-rules_python/docs/environment-variables.md (revision 60517a1edbc8ecf509223e9af94a7adec7d736b8)
1 # Environment Variables
2 
3 :::{envvar} RULES_PYTHON_REPO_DEBUG
4 
5 When `1`, repository rules will print debug information about what they're
6 doing. This is mostly useful for development to debug errors.
7 :::
8 
9 :::{envvar} RULES_PYTHON_REPO_DEBUG_VERBOSITY
10 
11 Determines the verbosity of logging output for repo rules. Valid values:
12 
13 * `DEBUG`
14 * `INFO`
15 * `TRACE`
16 :::
17 
18 :::{envvar} RULES_PYTHON_PIP_ISOLATED
19 
20 Determines if `--isolated` is used with pip.
21 
22 Valid values:
23 * `0` and `false` mean to not use isolated mode
24 * Other non-empty values mean to use isolated mode.
25 :::
26 
27 :::{envvar} RULES_PYTHON_BZLMOD_DEBUG
28 
29 When `1`, bzlmod extensions will print debug information about what they're
30 doing. This is mostly useful for development to debug errors.
31 :::
32 
33 :::{envvar} RULES_PYTHON_ENABLE_PYSTAR
34 
35 When `1`, the rules_python Starlark implementation of the core rules is used
36 instead of the Bazel-builtin rules. Note this requires Bazel 7+.
37 :::
38 
39 :::{envvar} RULES_PYTHON_BOOTSTRAP_VERBOSE
40 
41 When `1`, debug information about bootstrapping of a program is printed to
42 stderr.
43 :::
44 
45 :::{envvar} VERBOSE_COVERAGE
46 
47 When `1`, debug information about coverage behavior is printed to stderr.
48 :::
49