Skip to content

Commit e4cc572

Browse files
committed
fix: add pythons_hub to internal_setup
1 parent ab73e16 commit e4cc572

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

internal_setup.bzl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,25 @@ load("@rules_bazel_integration_test//bazel_integration_test:deps.bzl", "bazel_in
2222
load("@rules_bazel_integration_test//bazel_integration_test:repo_defs.bzl", "bazel_binaries")
2323
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
2424
load("//:version.bzl", "SUPPORTED_BAZEL_VERSIONS")
25+
load("//python/private:bzlmod_enabled.bzl", "BZLMOD_ENABLED") # buildifier: disable=bzl-visibility
2526
load("//python/private:internal_config_repo.bzl", "internal_config_repo") # buildifier: disable=bzl-visibility
27+
load("//python/private:pythons_hub.bzl", "hub_repo") # buildifier: disable=bzl-visibility
2628
load("//python/private/pypi:deps.bzl", "pypi_deps") # buildifier: disable=bzl-visibility
2729

2830
def rules_python_internal_setup():
2931
"""Setup for rules_python tests and tools."""
3032

3133
internal_config_repo(name = "rules_python_internal")
34+
if not BZLMOD_ENABLED:
35+
hub_repo(
36+
name = "pythons_hub",
37+
minor_mapping = {},
38+
default_python_version = "",
39+
toolchain_prefixes = [],
40+
toolchain_python_versions = [],
41+
toolchain_set_python_version_constraints = [],
42+
toolchain_user_repository_names = [],
43+
)
3244

3345
# Because we don't use the pip_install rule, we have to call this to fetch its deps
3446
pypi_deps()

0 commit comments

Comments
 (0)