Skip to content

Commit 44a1720

Browse files
committed
chore: stop exposing the interpreter - use python_3_x_host//:python instead
1 parent 5c336a1 commit 44a1720

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

python/private/toolchains_repo.bzl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ def _toolchain_aliases_impl(rctx):
132132
host_platform = _get_host_platform(os_name, arch)
133133

134134
is_windows = (os_name == WINDOWS_NAME)
135-
python3_binary_path = "python.exe" if is_windows else "bin/python3"
136135

137136
# Base BUILD file for this repository.
138137
build_contents = """\
@@ -181,8 +180,6 @@ load(
181180
)
182181
load("{rules_python}//python:pip.bzl", _compile_pip_requirements = "compile_pip_requirements")
183182
184-
interpreter = "@{py_repository}_{host_platform}//:{python3_binary_path}"
185-
186183
def py_binary(name, **kwargs):
187184
return _py_binary(
188185
name = name,
@@ -213,10 +210,7 @@ def compile_pip_requirements(name, **kwargs):
213210
)
214211
215212
""".format(
216-
host_platform = host_platform,
217-
py_repository = rctx.attr.user_repository_name,
218213
python_version = rctx.attr.python_version,
219-
python3_binary_path = python3_binary_path,
220214
rules_python = get_repository_name(rctx.attr._rules_python_workspace),
221215
))
222216

0 commit comments

Comments
 (0)