message: Add option to build from local copy of nGraph src
diff: @@ -60,7 +60,7 @@ def main():
  parser.add_argument(
  '--use_prebuilt_tensorflow',
  help="Skip building TensorFlow and use downloaded version.\n" +
  - "Note that in this case C++ unit tests won't be build for nGrapg-TF bridge",
  + "Note that in this case C++ unit tests won't be build for nGraph-TF bridge",
  action="store_true")
  parser.add_argument(
  @@ -85,10 +85,16 @@ def main():
  help="Copy the artifacts to the given directory\n",
  action="store")
  + parser.add_argument(
  + '--ngraph_src_dir',
  + type=str,
  + help="Local nGraph source directory to use. Overrides --ngraph_version.\n",
  + action="store")
  +
  parser.add_argument(
  '--ngraph_version',
  type=str,
  - help="nGraph version to use (Default: " + ngraph_version + ")\n",
  + help="nGraph version to use. Overridden by --ngraph_src_dir. (Default: " + ngraph_version + ")\n",
  action="store")
  parser.add_argument(
  @@ -190,7 +196,13 @@ def main():
  tf.__compiler_version__)
  cxx_abi = str(tf.__cxx11_abi_flag__)
  - # Download nGraph
  + # Download nGraph if required.
  + ngraph_src_dir='./ngraph'
  + if arguments.ngraph_src_dir:
  + ngraph_src_dir = arguments.ngraph_src_dir
  +
  + print("Using local nGraph source in directory ",ngraph_src_dir)
  + else:
  if arguments.ngraph_version:
  ngraph_version = arguments.ngraph_version
  @@ -238,7 +250,7 @@ def main():
  else:
  ngraph_cmake_flags.extend(["-DNGRAPH_UNIT_TEST_ENABLE=NO"])
  - build_ngraph(build_dir, "./ngraph", ngraph_cmake_flags, verbosity)
  + build_ngraph(build_dir, ngraph_src_dir, ngraph_cmake_flags, verbosity)
  # Next build CMAKE options for the bridge
  tf_src_dir = os.path.abspath("tensorflow")
  