Fix incorrect python interpreter path of non-bzlmod

Remove duplicated "_host" suffix.

PiperOrigin-RevId: 819229058
This commit is contained in:
Byungchul Kim 2025-10-14 08:13:46 -07:00 committed by TensorFlower Gardener
parent f23728131e
commit f474e0b8f2
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ def _get_python_interpreter():
)
if _is_bzlmod_enabled():
return str(INTERPRETER_LABELS[python_toolchain_name])
return "@{}_host//:python".format(python_toolchain_name)
return "@{}//:python".format(python_toolchain_name)
def _create_local_python_repository(repository_ctx):
"""Creates the repository containing files set up to build with Python."""

View File

@ -19,7 +19,7 @@ def _get_python_interpreter():
)
if _is_bzlmod_enabled():
return str(INTERPRETER_LABELS[python_toolchain_name])
return "@{}_host//:python".format(python_toolchain_name)
return "@{}//:python".format(python_toolchain_name)
def _create_local_python_repository(repository_ctx):
"""Creates the repository containing files set up to build with Python."""