You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/rules_python/python/config_settings/index.md
+1-34Lines changed: 1 addition & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,9 +38,7 @@ Values:
38
38
39
39
*`auto`: (default) Automatically decide the effective value based on environment,
40
40
target platform, etc.
41
-
*`enabled`: Compile Python source files at build time. Note that
42
-
{bzl:obj}`--precompile_add_to_runfiles` affects how the compiled files are included into
43
-
a downstream binary.
41
+
*`enabled`: Compile Python source files at build time.
44
42
*`disabled`: Don't compile Python source files at build time.
45
43
*`if_generated_source`: Compile Python source files, but only if they're a
46
44
generated file.
@@ -79,37 +77,6 @@ The `auto` value
79
77
:::
80
78
::::
81
79
82
-
::::{bzl:flag} precompile_add_to_runfiles
83
-
Determines if a target adds its compiled files to its runfiles.
84
-
85
-
When a target compiles its files, but doesn't add them to its own runfiles, it
86
-
relies on a downstream target to retrieve them from
87
-
{bzl:obj}`PyInfo.transitive_pyc_files`
88
-
89
-
Values:
90
-
*`always`: Always include the compiled files in the target's runfiles.
91
-
*`decided_elsewhere`: Don't include the compiled files in the target's
92
-
runfiles; they are still added to {bzl:obj}`PyInfo.transitive_pyc_files`. See
93
-
also: {bzl:obj}`py_binary.pyc_collection` attribute. This is useful for allowing
94
-
incrementally enabling precompilation on a per-binary basis.
95
-
:::{versionadded} 0.33.0
96
-
:::
97
-
::::
98
-
99
-
::::{bzl:flag} pyc_collection
100
-
Determine if `py_binary` collects transitive pyc files.
101
-
102
-
:::{note}
103
-
This flag is overridden by the target level `pyc_collection` attribute.
104
-
:::
105
-
106
-
Values:
107
-
*`include_pyc`: Include `PyInfo.transitive_pyc_files` as part of the binary.
108
-
*`disabled`: Don't include `PyInfo.transitive_pyc_files` as part of the binary.
109
-
:::{versionadded} 0.33.0
110
-
:::
111
-
::::
112
-
113
80
::::{bzl:flag} py_linux_libc
114
81
Set what libc is used for the target platform. This will affect which whl binaries will be pulled and what toolchain will be auto-detected. Currently `rules_python` only supplies toolchains compatible with `glibc`.
0 commit comments