Skip to content

Commit

Permalink
Set strict_timestamps=False when zip is called for isolated environment
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasserra authored and sbidoul committed May 23, 2021
1 parent 4f983c4 commit d55e02c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pip/_internal/build_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit d55e02c

Please sign in to comment.