Skip to content

Commit

Permalink
s/toolchain_defs/toolchain_suite
Browse files Browse the repository at this point in the history
  • Loading branch information
aignas committed Jan 26, 2024
1 parent bb2334d commit 493fb98
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions python/private/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ bzl_library(
)

bzl_library(
name = "toolchain_defs_bzl",
srcs = ["toolchain_defs.bzl"],
name = "toolchain_suite_bzl",
srcs = ["toolchain_suite.bzl"],
deps = [
"@bazel_skylib//lib:selects",
],
Expand Down
2 changes: 1 addition & 1 deletion python/private/bzlmod/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ bzl_library(
deps = [
"//python:versions_bzl",
"//python/private:full_version_bzl",
"//python/private:toolchain_defs_bzl",
"//python/private:toolchain_suite_bzl",
],
)
2 changes: 1 addition & 1 deletion python/private/bzlmod/pythons_hub.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def _have_same_length(*lists):

_HUB_BUILD_FILE_TEMPLATE = """\
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@@{rules_python}//python/private:toolchain_defs.bzl", "toolchain_defs")
load("@@{rules_python}//python/private:toolchain_suite.bzl", "toolchain_suite")
bzl_library(
name = "interpreters_bzl",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ load("@bazel_skylib//lib:selects.bzl", "selects")
_py_toolchain_type = Label("@bazel_tools//tools/python:toolchain_type")
_py_cc_toolchain_type = Label("//python/cc:toolchain_type")

def toolchain_defs(*, prefix, user_repository_name, python_version, set_python_version_constraint, **kwargs):
def toolchain_suite(*, prefix, user_repository_name, python_version, set_python_version_constraint, **kwargs):
"""For internal use only.
Args:
Expand Down
4 changes: 2 additions & 2 deletions python/private/toolchains_repo.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def python_toolchain_build_file_content(
# order to get us an index to increment the increment.
return "".join([
"""
load("@rules_python//python/private:toolchain_defs.bzl", "toolchain_defs")
load("@rules_python//python/private:toolchain_suite.bzl", "toolchain_suite")
toolchain_defs(
toolchain_suite(
user_repository_name = "{user_repository_name}_{platform}",
prefix = "{prefix}{platform}",
target_compatible_with = {compatible_with},
Expand Down

0 comments on commit 493fb98

Please sign in to comment.