permission on files in egg-info not group/others readable
- Dominant language
- Python
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
```
What steps will reproduce the problem?
1. Download the package from
https://prettytable.googlecode.com/files/prettytable-0.7.2.tar.gz
2. Extract and notice the permission for all files, especially the ones under
prettytable.egg-info directory
3. They should be readable by group/others.
What is the expected output? What do you see instead?
rainbow:Downloads barumugam$ tar -jxf prettytable-0.7.2.tar.bz2 && ls -lrt
prettytable-0.7.2/prettytable.egg-info/
total 32
-rw-------@ 1 barumugam staff 12 Apr 6 18:30 top_level.txt
-rw-------@ 1 barumugam staff 1 Apr 6 18:30 dependency_links.txt
-rw-------@ 1 barumugam staff 220 Apr 6 18:30 SOURCES.txt
-rw-------@ 1 barumugam staff 710 Apr 6 18:30 PKG-INFO
What version of the product are you using? On what operating system?
0.7.2
The permission is wrong in the tar file. No matter which OS we use to extract,
the permission is wrong. Due to this issue, if we install any library using pip
as non-root user, it fail with following error. This one occur precisely when
we install MySQL-python using pip, wherein prettytable is one of requirements.
The issue seem to exist even in older versions, say: 0.7.1.
File "/tmp/tmp2wlMmf/distribute-0.6.28/pkg_resources.py", line 1320, in _get
stream = open(path, 'rb')
IOError: [Errno 13] Permission denied:
'/usr/local/csi/lib/python2.6/site-packages/prettytable-0.7.2-py2.6.egg-info/top
_level.txt'
/home/jenkins/workspace/csi-nova-upstream/.tox/py26/build/MySQL-python/distribut
e-0.6.28-py2.6.egg
Traceback (most recent call last):
File "", line 16, in
File "/home/jenkins/workspace/csi-nova-upstream/.tox/py26/build/MySQL-python/setup.py", line 7, in
use_setuptools()
File "distribute_setup.py", line 145, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "distribute_setup.py", line 125, in _do_download
_build_egg(egg, tarball, to_dir)
File "distribute_setup.py", line 116, in _build_egg
raise IOError('Could not build the egg.')
IOError: Could not build the egg.
Can you please fix it or regenerate the package with right permission for these
files?
Thank you,
Bhuvan
```
Original issue reported on code.google.com by `bhuvanes...@gmail.com` on 28 Aug 2013 at 9:13
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported permissions after extracting the prettytable-0.7.2 archive, focusing on files under prettytable.egg-info. Trace the package-generation or release process that creates the tarball, then verify that the generated metadata files are readable by group and others and that a non-root installation no longer fails.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system, release
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100