[Pythonmac-SIG] Ownership of installed Python on Mac

Michael Foord fuzzyman at gmail.com
Tue Aug 9 23:15:17 CEST 2011


On 9 August 2011 20:42, Ned Deily <nad at acm.org> wrote:

> In article
> <CAKCKLWxR4Ubyh4sQJoyuan7=jFdzX62tRAFvHENC6uDpUeCxvw at mail.gmail.com>,
>  Michael Foord <fuzzyman at gmail.com> wrote:
> > I've installed Python on OS X Lion on two computers - one with Lion
> > preinstalled and one upgraded from Snow Leopard. I used both Python.org
> and
> > Activestate installers.
> >
> > In all cases (I'm pretty sure) the installation required elevation and
> the
> > installed Python was 'owned' by root - meaning any changes (e.g.
> > installation into site-packages) must be sudo'd.
> >
> > This is a change from previous versions of OS X. Is this known, and is it
> an
> > issue? (I chown'd everything back to me to get round it.)
>
> I can't speak to the ActiveState installer but for the python.org
> installers installation has always required a username with
> administrator privilege.  That hasn't changed in Lion.  And, even though
> owned by root, when logged in via an admin username, you should be able
> to install packages to its default location (using python setup.py or
> easy_install or pip) without sudo.


I don't believe that is actually the case in Lion due to the changes pointed
out by Nicholas.

All the best,

Michael



>  The default site-packages directory
> for python.org installations is:
>
> cd /Library/Frameworks/Python.framework/Versions/x.y/
> ls ./lib/pythonx.y/site-packages
> ls ./bin   # for scripts
>
> If you are using easy_install, make sure you aren't using the
> Apple-supplied easy_installs in /usr/bin which are for the system
> Pythons (2.7, 2.6, and 2.5 in OS X 10.7).  They will, by default,
> attempt to install into /Library/Python/2.y and /usr/local/bin for
> scripts and that *does* need sudo.
>
> --
>  Ned Deily,
>  nad at acm.org
>
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
> unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
>



-- 

http://www.voidspace.org.uk/

May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing http://www.sqlite.org/different.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20110809/fa9869af/attachment.html>


More information about the Pythonmac-SIG mailing list