mirror of https://github.com/pypa/pip
Set strict_timestamps=False when zip is called for isolated environment
This commit is contained in:
parent
999b121402
commit
5822e39d24
|
@ -58,7 +58,7 @@ def _create_standalone_pip() -> Iterator[str]:
|
|||
|
||||
with TempDirectory(kind="standalone-pip") as tmp_dir:
|
||||
pip_zip = os.path.join(tmp_dir.path, "__env_pip__.zip")
|
||||
with zipfile.ZipFile(pip_zip, "w") as zf:
|
||||
with zipfile.ZipFile(pip_zip, "w", strict_timestamps=False) as zf:
|
||||
for child in source.rglob("*"):
|
||||
zf.write(child, child.relative_to(source.parent).as_posix())
|
||||
yield os.path.join(pip_zip, "pip")
|
||||
|
|
Loading…
Reference in New Issue