[Distutils] setuptools.pth being installed with wrong permissions

Nicholas Riley njriley at uiuc.edu
Wed Jul 20 04:10:54 CEST 2005


On Tue, Jul 19, 2005 at 09:51:45PM -0400, Phillip J. Eby wrote:
> Cool.  Note that if you use EasyInstall, you could also just have people 
> type in the name or URL of a package, and then Trac could find and install 
> it.

I'll suggest this as another option.

> >Previously I had no version of setuptools installed on this machine,
> >so I downloaded ez_setup.py and ran it.  It didn't work the first
> >time, because setuptools.pth got installed with the wrong permissions
> >(my umask is 077).  The egg itself had the correct permissions,
> >however.
> 
> Interesting.  Did easy-install.pth get the right permissions, or no?  I'd 
> have expected them to end up with the same permissions.  Directories 
> probably get correct permissions, but I'm not doing any explicit 
> permissions setting anywhere.

No, it didn't get the right permissions either, at least when I tried
it this time.

This appears to have been a red herring; I actually did two installs,
the second as root so easy_install.py could go into /usr/local/bin,
and the second install overwrote everything from the first install
-except- the .pth files.  The permissions were wrong on the contents
of the egg in the first install, too.

> By the way, I'd suggest testing against the current CVS HEAD as soon as 
> practical, because there are some significant API changes in there.  Also, 
> that's where any permissions bug fix would go, at least until 0.6a1 is 
> released.

I just confirmed I see the same thing with a simple python setup.py
install on the CVS HEAD setuptools.  This may just be a generic
distutils problem that I've never seen before.

-- 
Nicholas Riley <njriley at uiuc.edu> | <http://www.uiuc.edu/ph/www/njriley>


More information about the Distutils-SIG mailing list