Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ http_archive(
"http://mirror.tensorflow.org/github.com/tensorflow/tensorflow/archive/v2.3.0.tar.gz", # 2020-07-23
"https://github.com/tensorflow/tensorflow/archive/v2.3.0.tar.gz",
],
patches = [
# Patch TF's python_configure.bzl to ensure it reconfigures its python
# toolchain when environment variables like `PATH` and `PYTHONPATH`
# change, to avoid the stale genrule py_binary issue described in:
# https://github.com/tensorflow/tensorboard/issues/4862
"//third_party:tensorflow.patch",
],
)

load("@org_tensorflow//tensorflow:workspace.bzl", "tf_workspace")
Expand Down
12 changes: 12 additions & 0 deletions third_party/tensorflow.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- third_party/py/python_configure.bzl 1970-01-01 00:00:00.000000000 +0000
+++ third_party/py/python_configure.bzl 1970-01-01 00:00:00.000000000 +0000
@@ -268,6 +268,9 @@ NOTE: https://github.com/tensorflow/tensorboard/issues/4862

_ENVIRONS = [
BAZEL_SH,
+ "PATH",
+ "PYTHONHOME",
+ "PYTHONPATH",
PYTHON_BIN_PATH,
PYTHON_LIB_PATH,
]