11# Environment Variables
22
3- :::{envvar} RULES_PYTHON_REPO_DEBUG
3+ :::{envvar} RULES_PYTHON_BOOTSTRAP_VERBOSE
44
5- When ` 1 ` , repository rules will print debug information about what they're
5+ When ` 1 ` , debug information about bootstrapping of a program is printed to
6+ stderr.
7+ :::
8+
9+ :::{envvar} RULES_PYTHON_BZLMOD_DEBUG
10+
11+ When ` 1 ` , bzlmod extensions will print debug information about what they're
612doing. This is mostly useful for development to debug errors.
713:::
814
9- :::{envvar} RULES_PYTHON_REPO_DEBUG_VERBOSITY
15+ :::{envvar} RULES_PYTHON_DEPRECATION_WARNINGS
1016
11- Determines the verbosity of logging output for repo rules. Valid values:
17+ When ` 1 ` , the rules_python will warn users about deprecated functionality that will
18+ be removed in a subsequent major ` rules_python ` version. Defaults to ` 0 ` if unset.
19+ :::
1220
13- * ` DEBUG `
14- * ` INFO `
15- * ` TRACE `
21+ :::{envvar} RULES_PYTHON_ENABLE_PYSTAR
22+
23+ When ` 1 ` , the rules_python Starlark implementation of the core rules is used
24+ instead of the Bazel-builtin rules. Note this requires Bazel 7+.
1625:::
1726
18- :::{envvar} RULES_PYTHON_REPO_TOOLCHAIN_VERSION_OS_ARCH
27+ :::: {envvar} RULES_PYTHON_EXTRACT_ROOT
1928
20- Determines the python interpreter platform to be used for a particular
21- interpreter ` (version, os, arch) ` triple to be used in repository rules.
22- Replace the ` VERSION_OS_ARCH ` part with actual values when using, e.g.
23- ` 3_13_0_linux_x86_64 ` . The version values must have ` _ ` instead of ` . ` and the
24- os, arch values are the same as the ones mentioned in the
25- ` //python:versions.bzl ` file.
29+ Directory to use as the root for creating files necessary for bootstrapping so
30+ that a binary can run.
31+
32+ Only applicable when {bzl: flag }` --venvs_use_declare_symlink=no ` is used.
33+
34+ When set, a binary will attempt to find a unique, reusable, location within this
35+ directory for the files it needs to create to aid startup. The files may not be
36+ deleted upon program exit; it is the responsibility of the caller to ensure
37+ cleanup.
38+
39+ Manually specifying the directory is useful to lower the overhead of
40+ extracting/creating files on every program execution. By using a location
41+ outside /tmp, longer lived programs don't have to worry about files in /tmp
42+ being cleaned up by the OS.
43+
44+ If not set, then a temporary directory will be created and deleted upon program
45+ exit.
46+
47+ :::{versionadded} VERSION_NEXT_PATCH
48+ :::
49+ ::::
50+
51+ :::{envvar} RULES_PYTHON_GAZELLE_VERBOSE
52+
53+ When ` 1 ` , debug information from gazelle is printed to stderr.
2654:::
2755
2856:::{envvar} RULES_PYTHON_PIP_ISOLATED
@@ -34,37 +62,32 @@ Valid values:
3462* Other non-empty values mean to use isolated mode.
3563:::
3664
37- :::{envvar} RULES_PYTHON_BZLMOD_DEBUG
65+ :::{envvar} RULES_PYTHON_REPO_DEBUG
3866
39- When ` 1 ` , bzlmod extensions will print debug information about what they're
67+ When ` 1 ` , repository rules will print debug information about what they're
4068doing. This is mostly useful for development to debug errors.
4169:::
4270
43- :::{envvar} RULES_PYTHON_DEPRECATION_WARNINGS
44-
45- When ` 1 ` , the rules_python will warn users about deprecated functionality that will
46- be removed in a subsequent major ` rules_python ` version. Defaults to ` 0 ` if unset.
47- :::
71+ :::{envvar} RULES_PYTHON_REPO_DEBUG_VERBOSITY
4872
49- :::{envvar} RULES_PYTHON_ENABLE_PYSTAR
73+ Determines the verbosity of logging output for repo rules. Valid values:
5074
51- When ` 1 ` , the rules_python Starlark implementation of the core rules is used
52- instead of the Bazel-builtin rules. Note this requires Bazel 7+.
75+ * ` DEBUG `
76+ * ` INFO `
77+ * ` TRACE `
5378:::
5479
55- :::{envvar} RULES_PYTHON_BOOTSTRAP_VERBOSE
80+ :::{envvar} RULES_PYTHON_REPO_TOOLCHAIN_VERSION_OS_ARCH
5681
57- When ` 1 ` , debug information about bootstrapping of a program is printed to
58- stderr.
82+ Determines the python interpreter platform to be used for a particular
83+ interpreter ` (version, os, arch) ` triple to be used in repository rules.
84+ Replace the ` VERSION_OS_ARCH ` part with actual values when using, e.g.
85+ ` 3_13_0_linux_x86_64 ` . The version values must have ` _ ` instead of ` . ` and the
86+ os, arch values are the same as the ones mentioned in the
87+ ` //python:versions.bzl ` file.
5988:::
6089
6190:::{envvar} VERBOSE_COVERAGE
6291
6392When ` 1 ` , debug information about coverage behavior is printed to stderr.
6493:::
65-
66-
67- :::{envvar} RULES_PYTHON_GAZELLE_VERBOSE
68-
69- When ` 1 ` , debug information from gazelle is printed to stderr.
70- :::
0 commit comments