Add "yes | configure" step to java-docs script.

PiperOrigin-RevId: 326457785
Change-Id: I4e28fd30343ef386d3bfc748c70337a60c21143f
This commit is contained in:
Mark Daoust 2020-08-13 09:08:33 -07:00 committed by TensorFlower Gardener
parent c26a79d3c7
commit 357e80f364

View File

@ -62,6 +62,13 @@ def main(unused_argv):
shutil.copytree(SOURCE_PATH, merged_source / 'java')
if FLAGS.gen_ops:
# `$ yes | configure`
yes = subprocess.Popen(['yes', ''], stdout=subprocess.PIPE)
configure = subprocess.Popen([TENSORFLOW_ROOT / 'configure'],
stdin=yes.stdout,
cwd=TENSORFLOW_ROOT)
configure.communicate()
subprocess.check_call(
['bazel', 'build', '//tensorflow/java:java_op_gen_sources'],
cwd=TENSORFLOW_ROOT)