docs: def get_dynlib_dependencies(lib_path):
      """
      Executes tools for inspecting dynamic library dependencies depending on the
      current platform.
      """
      if LINUX:
          ldd_fpath = '/usr/bin/ldd'
          depend_out, depend_err, ret = cmd(ldd_fpath, lib_path, verbose=False)
      elif DARWIN:
          otool_fpath = '/opt/local/bin/otool'
          depend_out, depend_err, ret = cmd(otool_fpath, '-L', lib_path, verbose=False)
      elif WIN32:
          depend_out, depend_err, ret = cmd('objdump', '-p', lib_path, verbose=False)
          #fnmatch.filter(depend_out.split('\n'), '*DLL*')
          relevant_lines = [line for line in depend_out.splitlines() if 'DLL Name:' in line]
          depend_out = '\n'.join(relevant_lines)
      assert ret == 0, 'bad dependency check'
      return depend_out