code: def _build_paths(venv=None):
      
      if venv:
          paths = venv.paths
      else:
          paths = sysconfig.get_paths()
      return {
          "prefix": sys.prefix if not venv else venv.venv_dir.as_posix(),
          "data": paths["data"],
          "scripts": paths["scripts"],
          "headers": paths["include"],
          "purelib": paths["purelib"],
          "platlib": paths["platlib"],
      }
docs: Prepare paths for distlib.wheel.Wheel to install into.