Skip to content

Commit 3830e0d

Browse files
committed
Patches TF to fix windows builds to not look for a python3 executable.
PiperOrigin-RevId: 346198943
1 parent 4a02035 commit 3830e0d

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

WORKSPACE

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ http_archive(
5757
urls = [
5858
"https://github.com/tensorflow/tensorflow/archive/v2.5.0.zip"
5959
],
60+
patches = ["//third_party/tensorflow:tf.patch"],
61+
patch_args = ["-p1"],
6062
)
6163

6264
http_archive(

third_party/tensorflow/tf.patch

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff --git a/third_party/remote_config/common.bzl b/third_party/remote_config/common.bzl
2+
index d7e69326205..6f5a4f8c3e0 100644
3+
--- a/third_party/remote_config/common.bzl
4+
+++ b/third_party/remote_config/common.bzl
5+
@@ -42,11 +42,6 @@ def get_python_bin(repository_ctx):
6+
if python_bin != None:
7+
return python_bin
8+
9+
- # First check for an explicit "python3"
10+
- python_bin = which(repository_ctx, "python3")
11+
- if python_bin != None:
12+
- return python_bin
13+
-
14+
# Some systems just call pythone3 "python"
15+
python_bin = which(repository_ctx, "python")
16+
if python_bin != None:

0 commit comments

Comments
 (0)