Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296764 - setuptools installs packages with wrong permissions
Summary: setuptools installs packages with wrong permissions
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-13 19:13 UTC by Kamil Dworakowski
Modified: 2009-12-20 00:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kamil Dworakowski 2009-12-13 19:13:38 UTC
I have setuptools 0.6.8, which installs packages into site-packages with no permissions for anything and anyone except root. Specifically, when I easy_installed 'py', I could only use py.test as the root. Only after I have chmoded everything in the site-packages o+xr did it start working for my normal user. There is a year old Bug concerning what is at least a similar problem, but is marked as resolved. 

http://bugs.gentoo.org/215404
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-12-13 19:20:48 UTC
Can you reproduce this problem with the newest version?
Please provide exact steps to reproduce.
Comment 2 Kamil Dworakowski 2009-12-13 21:57:19 UTC
(In reply to comment #1)
> Can you reproduce this problem with the newest version?
> Please provide exact steps to reproduce.
> 

Sorry, haven't done emerge --sync for a while. It does repro with the newest version of setuptools though.

repro:
1. remove my precious py package
   # rm -rf /usr/lib64/python2.6/site-packages/py-1.1.1-py2.6.egg
2. # easy_install py
3. $ py.test
Traceback (most recent call last):
  File "/usr/bin/py.test", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib64/python2.6/site-packages/pkg_resources.py", line 2655, in <module>
    working_set.require(__requires__)
  File "/usr/lib64/python2.6/site-packages/pkg_resources.py", line 648, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib64/python2.6/site-packages/pkg_resources.py", line 546, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: py==1.1.1


after
# chmod -R o+xr /usr/lib64/python2.6/site-packages/py-1.1.1-py2.6.egg

it works

Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-12-13 22:59:39 UTC
Please attach test files used for reproduction of this bug.
Comment 4 Kamil Dworakowski 2009-12-13 23:04:15 UTC
No files needed. If py.test does not find any test files, it should say so, not blow up with a traceback.
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-12-20 00:04:15 UTC
We don't apply any patches, which would cause this bug.
Please report it to upstream.