def METHOD_NAME(self) -> Path:
    if self.building:
        return self.tmp_dir
    version = self.uri.version
    return (
        self.project_dir
        / "workdir"
        / self.uri_type
        / self.uri.name
        / version[:VERSION_PREFIX_CNT]
        / version
    )