mirror of https://github.com/pypa/pip
Better name temp directory
This commit is contained in:
parent
638b562048
commit
e8e5153612
|
@ -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("*"):
|
||||
|
|
Loading…
Reference in New Issue