outs = [filename.split(".")[0] + ".cpp"],
# Optionally use PYTHON_BIN_PATH on Linux platforms so that python 3
# works. Windows has issues with cython_binary so skip PYTHON_BIN_PATH.
- cmd = "PYTHONHASHSEED=0 " + select({
- "@bazel_tools//src/conditions:windows": "",
- "//conditions:default": "$${PYTHON_BIN_PATH} ",
- }) + "$(location @cython//:cython_binary) --cplus $(SRCS) --output-file $(OUTS)",
+ cmd = "PYTHONHASHSEED=0 $(location @cython//:cython_binary) --cplus $(SRCS) --output-file $(OUTS)",
tools = ["@cython//:cython_binary"] + pxd_srcs,
)
],
outs=["util/version_info.cc"],
cmd=
- "$${PYTHON_BIN_PATH} $(location //tensorflow/tools/git:gen_git_source.py) --generate $(SRCS) \"$@\" --git_tag_override=$${GIT_TAG_OVERRIDE:-}",
+ "$(location //tensorflow/tools/git:gen_git_source.py) --generate $(SRCS) \"$@\" --git_tag_override=$${GIT_TAG_OVERRIDE:-}",
local=1,
tools=[clean_dep("//tensorflow/tools/git:gen_git_source.py")],)
name="py_build_info_gen",
outs=["platform/build_info.py"],
cmd=
- "$${PYTHON_BIN_PATH} $(location //tensorflow/tools/build_info:gen_build_info.py) --raw_generate \"$@\" --build_config " + if_cuda("cuda", "cpu"),
+ "$(location //tensorflow/tools/build_info:gen_build_info.py) --raw_generate \"$@\" --build_config " + if_cuda("cuda", "cpu"),
local=1,
tools=[clean_dep("//tensorflow/tools/build_info:gen_build_info.py")],)
"api/user_ops/__init__.py",
# END GENERATED FILES
],
- # Optionally use PYTHON_BIN_PATH on Linux platforms so that python 3
- # works. Windows has issues with the command so skip PYTHON_BIN_PATH
- # for now.
- cmd = select({
- "@bazel_tools//src/conditions:windows": "",
- "//conditions:default": "$${PYTHON_BIN_PATH} ",
- }) + "$(location create_python_api) $(OUTS)",
+ cmd = "$(location create_python_api) $(OUTS)",
tools = ["create_python_api"],
)