Skip to content

Commit 9aefee3

Browse files
committed
Write TensorFlow patch into external dir
1 parent d0a0ca2 commit 9aefee3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

scripts/patch_tfjava.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def patch_workspace(path: Path) -> None:
5252

5353

5454
def write_tensorflow_android_absl_patch(path: Path) -> None:
55+
path.parent.mkdir(parents=True, exist_ok=True)
5556
text = """diff --git a/tensorflow/workspace.bzl b/tensorflow/workspace.bzl
5657
--- a/tensorflow/workspace.bzl
5758
+++ b/tensorflow/workspace.bzl
@@ -67,7 +68,11 @@ def main() -> None:
6768
patch_build_sh(root / "tensorflow-core" / "tensorflow-core-api" / "build.sh")
6869
patch_workspace(root / "tensorflow-core" / "tensorflow-core-api" / "WORKSPACE")
6970
write_tensorflow_android_absl_patch(
70-
root / "tensorflow-core" / "tensorflow-core-api" / "tensorflow-android-absl.patch"
71+
root
72+
/ "tensorflow-core"
73+
/ "tensorflow-core-api"
74+
/ "external"
75+
/ "tensorflow-android-absl.patch"
7176
)
7277
patch_preset(
7378
root

0 commit comments

Comments
 (0)