On 9 August 2011 20:00, Nicholas Riley <njri...@illinois.edu> wrote:

> On Tue, Aug 09, 2011 at 06:21:17PM +0100, Michael Foord wrote:
> > 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.)
>
> Yes, it's an intentional decision, made for security reasons:
>
>
> http://developer.apple.com/library/mac/releasenotes/MacOSX/WhatsNewInOSX/Articles/MacOSX10_7.html#//apple_ref/doc/uid/TP40010355-SW16
>
>
Right, I believe this is the specific change:


   -

   Many folders in the System domain that were previously owned by the
admingroup are now owned by the
   wheel group.


Nothing we can do about it then I guess. Thanks.





> The only inconsistent part is that /Library/Java is still
> admin-writable; /Library/Java/Extensions contains jars which end up on
> the classpath of all Java applications, so not allowing the equivalent
> thing for Python seems a bit strange.  This might just be linked to
> the removal of Java as part of the base system, though.
>
> You could only install Python packages as an admin user (without sudo)
> if they didn't try to create any scripts, which ended up in
> /usr/local/bin which isn't admin-writable even on Snow Leopard.
>
> Now I just install everything in a virtualenv and am generally
> happier.
>

Well yes, but that means you probably need pip and virtualenv as a minimum.
It was installing these that I noticed the difference.


Michael



>
> --
> Nicholas Riley <njri...@illinois.edu>
>



-- 

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
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to