Skip to content

Commit

Permalink
Set permission on manually created metadata files
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Apr 26, 2020
1 parent 9af0b3d commit f1977cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pip/_internal/operations/install/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ def _generate_file(path, **kwargs):
# 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
Expand Down

0 comments on commit f1977cf

Please sign in to comment.