mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 00:19:58 +01:00
Fix incorrect python interpreter path of non-bzlmod
Remove duplicated "_host" suffix. PiperOrigin-RevId: 819229058
This commit is contained in:
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():
|
if _is_bzlmod_enabled():
|
||||||
return str(INTERPRETER_LABELS[python_toolchain_name])
|
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):
|
def _create_local_python_repository(repository_ctx):
|
||||||
"""Creates the repository containing files set up to build with Python."""
|
"""Creates the repository containing files set up to build with Python."""
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ def _get_python_interpreter():
|
||||||
)
|
)
|
||||||
if _is_bzlmod_enabled():
|
if _is_bzlmod_enabled():
|
||||||
return str(INTERPRETER_LABELS[python_toolchain_name])
|
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):
|
def _create_local_python_repository(repository_ctx):
|
||||||
"""Creates the repository containing files set up to build with Python."""
|
"""Creates the repository containing files set up to build with Python."""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user