Skip to content

Commit ba6fc87

Browse files
committed
chore: remove uname calling from toolchain aliases repo
1 parent 44a1720 commit ba6fc87

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

python/private/toolchains_repo.bzl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,7 @@ toolchains_repo = repository_rule(
127127

128128
def _toolchain_aliases_impl(rctx):
129129
logger = repo_utils.logger(rctx)
130-
(os_name, arch) = _get_host_os_arch(rctx, logger)
131-
132-
host_platform = _get_host_platform(os_name, arch)
130+
(os_name, _) = _get_host_os_arch(rctx, logger)
133131

134132
is_windows = (os_name == WINDOWS_NAME)
135133

@@ -160,7 +158,6 @@ alias(name = "python3", actual = select({{":" + item: "@{py_repository}_
160158
alias(name = "pip", actual = select({{":" + item: "@{py_repository}_" + item + "//:python_runtimes" for item in PLATFORMS if "windows" not in item}}))
161159
""".format(
162160
py_repository = rctx.attr.user_repository_name,
163-
host_platform = host_platform,
164161
)
165162
rctx.file("BUILD.bazel", build_contents)
166163

0 commit comments

Comments
 (0)