Set permission on manually created metadata files

This commit is contained in:
Tzu-ping Chung 2020-04-26 17:44:33 +08:00
parent 9af0b3daeb
commit f1977cfa5f
1 changed files with 1 additions and 0 deletions

View File

@ -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