1
1
# Environment Variables
2
2
3
- :::{envvar} RULES_PYTHON_REPO_DEBUG
3
+ :::{envvar} RULES_PYTHON_BOOTSTRAP_VERBOSE
4
4
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
6
12
doing. This is mostly useful for development to debug errors.
7
13
:::
8
14
9
- :::{envvar} RULES_PYTHON_REPO_DEBUG_VERBOSITY
15
+ :::{envvar} RULES_PYTHON_DEPRECATION_WARNINGS
10
16
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
+ :::
12
20
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+.
16
25
:::
17
26
18
- :::{envvar} RULES_PYTHON_REPO_TOOLCHAIN_VERSION_OS_ARCH
27
+ :::: {envvar} RULES_PYTHON_EXTRACT_ROOT
19
28
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.
26
54
:::
27
55
28
56
:::{envvar} RULES_PYTHON_PIP_ISOLATED
@@ -34,37 +62,32 @@ Valid values:
34
62
* Other non-empty values mean to use isolated mode.
35
63
:::
36
64
37
- :::{envvar} RULES_PYTHON_BZLMOD_DEBUG
65
+ :::{envvar} RULES_PYTHON_REPO_DEBUG
38
66
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
40
68
doing. This is mostly useful for development to debug errors.
41
69
:::
42
70
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
48
72
49
- :::{envvar} RULES_PYTHON_ENABLE_PYSTAR
73
+ Determines the verbosity of logging output for repo rules. Valid values:
50
74
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 `
53
78
:::
54
79
55
- :::{envvar} RULES_PYTHON_BOOTSTRAP_VERBOSE
80
+ :::{envvar} RULES_PYTHON_REPO_TOOLCHAIN_VERSION_OS_ARCH
56
81
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.
59
88
:::
60
89
61
90
:::{envvar} VERBOSE_COVERAGE
62
91
63
92
When ` 1 ` , debug information about coverage behavior is printed to stderr.
64
93
:::
65
-
66
-
67
- :::{envvar} RULES_PYTHON_GAZELLE_VERBOSE
68
-
69
- When ` 1 ` , debug information from gazelle is printed to stderr.
70
- :::
0 commit comments