parameters: (self)
docstring: Copy libraries from the bin directory and place them as appropriate.
docstring_summary: Copy libraries from the bin directory and place them as appropriate.
docstring_tokens: Copy libraries from the bin directory and place them as appropriate .
function: def run(self):
          """Copy libraries from the bin directory and place them as appropriate."""
          self.announce("Adding library files", level=3)
  
          root_dir = os.path.join(OPENVINO_ROOT_DIR, "bin")
          if os.environ.get("OpenVINO_DIR") is not None:
              root_dir = pathlib.Path(PYTHON_API_ROOT_DIR)
  
          lib_ext = ""
          if "linux" in sys.platform:
              lib_ext = ".so"
          elif sys.platform == "darwin":
              lib_ext = ".dylib"
          elif sys.platform == "win32":
              lib_ext = ".dll"
  
          libs = []
          print(root_dir)
          for ngraph_lib in NGRAPH_LIBS:
              libs.extend(list(glob.iglob(f"{root_dir}/**/*{ngraph_lib}*{lib_ext}", recursive=True)))
              print(libs)
          if not libs:
              raise Exception("NGraph libs not found.")
  
          self.announce("Adding library files" + str(libs), level=3)
  
          self.distribution.data_files.extend([("lib", [os.path.normpath(lib) for lib in libs])])
          self.distribution.run_command("install_data")
          super().run()
function_tokens: def run ( self ) : self . announce ( "Adding library files" , level = 3 ) root_dir = os . path . join ( OPENVINO_ROOT_DIR , "bin" ) if os . environ . get ( "OpenVINO_DIR" ) is not None : root_dir = pathlib . Path ( PYTHON_API_ROOT_DIR ) lib_ext = "" if "linux" in sys . platform : lib_ext = ".so" elif sys . platform == "darwin" : lib_ext = ".dylib" elif sys . platform == "win32" : lib_ext = ".dll" libs = [ ] print ( root_dir ) for ngraph_lib in NGRAPH_LIBS : libs . extend ( list ( glob . iglob ( f"{root_dir}/**/*{ngraph_lib}*{lib_ext}" , recursive = True ) ) ) print ( libs ) if not libs : raise Exception ( "NGraph libs not found." ) self . announce ( "Adding library files" + str ( libs ) , level = 3 ) self . distribution . data_files . extend ( [ ( "lib" , [ os . path . normpath ( lib ) for lib in libs ] ) ] ) self . distribution . run_command ( "install_data" ) super ( ) . run ( )