docs: def install_deps(pkgpath):
      """Install plugin dependencies using pip.
  
      We import pip here to reduce load time for when its not needed.
      """
      if os.path.exists(os.path.join(pkgpath, "requirements.txt")):
          logger.debug("installing dependencies")
          click.secho("[*] Installing dependencies")
          pipargs = ["install", "--target", os.path.join(pkgpath, defs.DEPS_DIR), "--ignore-installed",
                     "-r", os.path.join(pkgpath, "requirements.txt")]
          logger.debug("running pip %s", pipargs)
          return subprocess.check_call([sys.executable, "-m", "pip"] + pipargs)
      return 0