Skip to content

Commit

Permalink
Patches TF to fix windows builds to not look for a python3 executable.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 346198943
  • Loading branch information
broken committed May 24, 2021
1 parent 4a02035 commit 3830e0d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ http_archive(
urls = [
"https://github.com/tensorflow/tensorflow/archive/v2.5.0.zip"
],
patches = ["//third_party/tensorflow:tf.patch"],
patch_args = ["-p1"],
)

http_archive(
Expand Down
16 changes: 16 additions & 0 deletions third_party/tensorflow/tf.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/third_party/remote_config/common.bzl b/third_party/remote_config/common.bzl
index d7e69326205..6f5a4f8c3e0 100644
--- a/third_party/remote_config/common.bzl
+++ b/third_party/remote_config/common.bzl
@@ -42,11 +42,6 @@ def get_python_bin(repository_ctx):
if python_bin != None:
return python_bin

- # First check for an explicit "python3"
- python_bin = which(repository_ctx, "python3")
- if python_bin != None:
- return python_bin
-
# Some systems just call pythone3 "python"
python_bin = which(repository_ctx, "python")
if python_bin != None:

0 comments on commit 3830e0d

Please sign in to comment.