1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

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

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