chore(bzlmod): assume that we can always mark the extension as reproducible (#3444)
As part of the previous bazel 6 and bazel 7 support cleanup, we probably
should
have done this as well. All of the supported bazel versions allow us to
mark
the extension as reproducible.
diff --git a/python/private/pypi/extension.bzl b/python/private/pypi/extension.bzl
index eaa6c0d..2a6d43f 100644
--- a/python/private/pypi/extension.bzl
+++ b/python/private/pypi/extension.bzl
@@ -14,7 +14,6 @@
"pip module extension for use with bzlmod"
-load("@bazel_features//:features.bzl", "bazel_features")
load("@pythons_hub//:interpreters.bzl", "INTERPRETER_LABELS")
load("@pythons_hub//:versions.bzl", "MINOR_MAPPING")
load("@rules_python_internal//:rules_python_config.bzl", rp_config = "config")
@@ -385,13 +384,9 @@
groups = mods.hub_group_map.get(hub_name),
)
- if bazel_features.external_deps.extension_metadata_has_reproducible:
- # NOTE @aignas 2025-04-15: this is set to be reproducible, because the
- # results after calling the PyPI index should be reproducible on each
- # machine.
- return module_ctx.extension_metadata(reproducible = True)
- else:
- return None
+ return module_ctx.extension_metadata(
+ reproducible = True,
+ )
_default_attrs = {
"arch_name": attr.string(