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
"uv.override_package() for '{}'".format(override.name),
253
+
)
249
254
has_modifications= (
250
255
override.pre_build_patchesor
251
256
override.post_install_patchesor
252
257
override.extra_depsor
253
258
override.extra_dataor
254
259
override.toolchainsor
255
-
override.env
260
+
override.envor
261
+
override.build_memory_mb
256
262
)
257
263
258
264
ifhas_targetandhas_modifications:
259
-
fail("uv.override_package() for '{}': `target` is mutually exclusive with patch/exclude attributes. Use `target` for full replacement OR patch/exclude attributes for modifications, not both.".format(override.name))
265
+
fail("uv.override_package() for '{}': `target` is mutually exclusive with modification attributes. Use `target` for full replacement OR build, patch, and data attributes for modifications, not both.".format(override.name))
260
266
261
267
ifnothas_targetandnothas_modifications:
262
-
fail("uv.override_package() for '{}': must specify either `target` for full replacement or at least one modification attribute (pre_build_patches, post_install_patches, extra_deps, extra_data).".format(override.name))
268
+
fail("uv.override_package() for '{}': must specify either `target` for full replacement or at least one build, patch, or data modification attribute.".format(override.name))
# Mutually exclusive with patch/exclude attributes.
747
758
"target": attr.label(mandatory=False),
748
759
749
-
# Per-package toolchain plumbing for native sdist builds. Both
750
-
# attributes AUGMENT the defaults baked into sdist_build's
760
+
# Per-package resource and toolchain settings for sdist builds.
761
+
# toolchains and env AUGMENT the defaults baked into sdist_build's
751
762
# generated `pep517_native_whl(...)` call (the CC toolchain +
752
763
# CC/CXX/AR/LD/STRIP env) — they don't replace them. Use these
753
764
# to layer extra toolchains (Java runtime, Rust, …) and extra
754
765
# env vars on top of the defaults.
766
+
"build_memory_mb": attr.int(
767
+
default=0,
768
+
doc="Estimated peak memory in MB for this package's local wheel build, from 0 to 32768. Bazel rounds up to a supported resource class; zero uses its default estimate.",
769
+
),
755
770
"toolchains": attr.label_list(
756
771
default= [],
757
772
doc="Extra toolchain targets appended to the generated pep517_native_whl(...) call's `toolchains` list. Each target's TemplateVariableInfo make-variables become available for $(VAR) expansion in `env`.",
doc="Extra environment variables merged into the build action's `env` dict. Values may reference $(VAR) make-variables sourced from the default CC toolchain or any extra `toolchains` listed above.",
762
777
),
763
-
764
778
# Pre-build patches: applied to extracted sdist source before wheel build.
0 commit comments