parameters: (output_dir)
docstring: Builds the headers files for TF.
docstring_summary: Builds the headers files for TF.
docstring_tokens: Builds the headers files for TF .
function: def build_headers(output_dir):
    """Builds the headers files for TF."""
  
    # `$ 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/cc:cc_ops'],
                          cwd=TENSORFLOW_ROOT)
    subprocess.check_call(
        ['cp', '--dereference', '-r', 'bazel-bin', output_dir / 'bazel-genfiles'],
        cwd=TENSORFLOW_ROOT)
function_tokens: def build_headers ( output_dir ) : # `$ 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/cc:cc_ops' ] , cwd = TENSORFLOW_ROOT ) subprocess . check_call ( [ 'cp' , '--dereference' , '-r' , 'bazel-bin' , output_dir / 'bazel-genfiles' ] , cwd = TENSORFLOW_ROOT )