Manual roll back of PR #19443, because it causes the Raspberry Pi build to fail ...
authorPete Warden <pete@petewarden.com>
Fri, 1 Jun 2018 02:44:05 +0000 (19:44 -0700)
committerGunhan Gulsoy <gunan@google.com>
Fri, 1 Jun 2018 02:44:05 +0000 (19:44 -0700)
tensorflow/core/platform/default/build_config.bzl
tensorflow/tensorflow.bzl
tensorflow/tools/api/generator/BUILD

index 365f121..b9eb3d0 100644 (file)
@@ -73,10 +73,7 @@ def pyx_library(
         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,
     )
 
index 2354b70..b59f8e1 100644 (file)
@@ -1710,7 +1710,7 @@ def tf_version_info_genrule():
       ],
       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")],)
 
@@ -1719,7 +1719,7 @@ def tf_py_build_info_genrule():
       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")],)
 
index 3259406..f46bb4b 100644 (file)
@@ -122,13 +122,7 @@ genrule(
         "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"],
 )