You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When installing pip and possibly other packages with pip 20.1b, several metadata files are install unreadable by other users (mod 0600). I've noticed INSTALLER, RECORD and direct_url.json, but the simple reproducer here doesn't have direct_url.json because I don't now where did that come from in the Fedora build system.
Expected behavior
INSTALLER, RECORD and direct_url.json are readbale by others (mod 664).
If installed as root, other tools can later blow up when run as regular users:
File "/usr/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 188, in _main
status = self.run(options, args)
File "/usr/lib/python3.8/site-packages/pip/_internal/commands/freeze.py", line 98, in run
for line in freeze(**freeze_kwargs):
File "/usr/lib/python3.8/site-packages/pip/_internal/operations/freeze.py", line 68, in freeze
req = FrozenRequirement.from_dist(dist)
File "/usr/lib/python3.8/site-packages/pip/_internal/operations/freeze.py", line 256, in from_dist
direct_url = dist_get_direct_url(dist)
File "/usr/lib/python3.8/site-packages/pip/_internal/utils/direct_url_helpers.py", line 118, in dist_get_direct_url
return DirectUrl.from_json(dist.get_metadata(DIRECT_URL_METADATA_NAME))
File "/usr/lib/python3.8/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1420, in get_metadata
value = self._get(path)
File "/usr/lib/python3.8/site-packages/pip/_vendor/pkg_resources/__init__.py", line 1616, in _get
with open(path, 'rb') as stream:
PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.8/site-packages/pip-20.1b1.dist-info/direct_url.json'
The text was updated successfully, but these errors were encountered:
Environment
Description
When installing pip and possibly other packages with pip 20.1b, several metadata files are install unreadable by other users (mod 0600). I've noticed INSTALLER, RECORD and direct_url.json, but the simple reproducer here doesn't have direct_url.json because I don't now where did that come from in the Fedora build system.
Expected behavior
INSTALLER, RECORD and direct_url.json are readbale by others (mod 664).
How to Reproduce and Output
If installed as root, other tools can later blow up when run as regular users:
The text was updated successfully, but these errors were encountered: