mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
Fix incorrect python interpreter path of non-bzlmod
Remove duplicated "_host" suffix. PiperOrigin-RevId: 819229058
This commit is contained in:
committed by
TensorFlower Gardener
parent
f23728131e
commit
f474e0b8f2
2
third_party/py/python_configure.bzl
vendored
2
third_party/py/python_configure.bzl
vendored
@@ -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."""
|
||||
|
||||
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user