Better name temp directory

This commit is contained in:
Tzu-ping Chung 2021-03-06 02:26:56 +08:00
parent 638b562048
commit e8e5153612
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class _Prefix:
def _create_standalone_pip() -> Iterator[str]:
"""Create a zip file containing specified pip installation."""
source = pathlib.Path(pip_location).resolve().parent
with TempDirectory() as tmp_dir:
with TempDirectory(kind="standalone-pip") as tmp_dir:
pip_zip = os.path.join(tmp_dir.path, "pip.zip")
with zipfile.ZipFile(pip_zip, "w") as zf:
for child in source.rglob("*"):