Skip to content

Commit 89c8f20

Browse files
authored
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.
1 parent 2828f69 commit 89c8f20

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

python/private/pypi/extension.bzl

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"pip module extension for use with bzlmod"
1616

17-
load("@bazel_features//:features.bzl", "bazel_features")
1817
load("@pythons_hub//:interpreters.bzl", "INTERPRETER_LABELS")
1918
load("@pythons_hub//:versions.bzl", "MINOR_MAPPING")
2019
load("@rules_python_internal//:rules_python_config.bzl", rp_config = "config")
@@ -385,13 +384,9 @@ def _pip_impl(module_ctx):
385384
groups = mods.hub_group_map.get(hub_name),
386385
)
387386

388-
if bazel_features.external_deps.extension_metadata_has_reproducible:
389-
# NOTE @aignas 2025-04-15: this is set to be reproducible, because the
390-
# results after calling the PyPI index should be reproducible on each
391-
# machine.
392-
return module_ctx.extension_metadata(reproducible = True)
393-
else:
394-
return None
387+
return module_ctx.extension_metadata(
388+
reproducible = True,
389+
)
395390

396391
_default_attrs = {
397392
"arch_name": attr.string(

0 commit comments

Comments
 (0)