File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -278,9 +278,7 @@ attribute.
278
278
),
279
279
"precompile" : attr .string (
280
280
doc = """
281
- Whether py source files should be precompiled.
282
-
283
- See also: {flag}`--precompile` flag, which can override this attribute in some cases.
281
+ Whether py source files **for this target** should be precompiled.
284
282
285
283
Values:
286
284
@@ -291,6 +289,15 @@ Values:
291
289
* `disabled`: Don't compile Python source files at build time.
292
290
* `if_generated_source`: Compile Python source files, but only if they're a
293
291
generated file.
292
+
293
+ :::{seealso}
294
+
295
+ * The {flag}`--precompile` flag, which can override this attribute in some cases
296
+ and will affect all targets when building.
297
+ * The {obj}`pyc_collection` attribute for transitively enabling precompiling on
298
+ a per-target basis.
299
+ * The [Precompiling](precompiling) docs for a guide about using precompiling.
300
+ :::
294
301
""" ,
295
302
default = PrecompileAttr .INHERIT ,
296
303
values = sorted (PrecompileAttr .__members__ .values ()),
You can’t perform that action at this time.
0 commit comments