未验证 提交 d55e02c7 编写于 作者: N Nicholas Serra 提交者: Stéphane Bidoul

Set strict_timestamps=False when zip is called for isolated environment

上级 4f983c44
......@@ -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")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册