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