From f1977cfa5fac9edbff0dc7352602c4133b8f6fff Mon Sep 17 00:00:00 2001 From: Tzu-ping Chung Date: Sun, 26 Apr 2020 17:44:33 +0800 Subject: [PATCH] Set permission on manually created metadata files --- src/pip/_internal/operations/install/wheel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pip/_internal/operations/install/wheel.py b/src/pip/_internal/operations/install/wheel.py index 5a5aa5bc0..9a292e551 100644 --- a/src/pip/_internal/operations/install/wheel.py +++ b/src/pip/_internal/operations/install/wheel.py @@ -572,6 +572,7 @@ def install_unpacked_wheel( # type: (str, **Any) -> Iterator[NamedTemporaryFileResult] with adjacent_tmp_file(path, **kwargs) as f: yield f + os.chmod(f.name, 0o644) replace(f.name, path) # Record pip as the installer