In article <nad-758d69.12421609082...@dough.gmane.org>, Ned Deily <n...@acm.org> wrote:
> In article > <CAKCKLWxR4Ubyh4sQJoyuan7=jfdzx62trafvhenc6udpuec...@mail.gmail.com>, > Michael Foord <fuzzy...@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. 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. Just to clarify: to install Python itself using a python.org installer requires entering an admin user name and password using the standard OS X GUI installer or "sudo installer" if using the command line OS X installer. But if you are running under a user with admin priv you shouldn't need to use sudo to install Distutils-based packages (via setup.py, easy_install, etc) with the python.org installed Pythons. As far as I know, there is no difference in this behavior between Lion, Snow Leopard, or Leopard. -- Ned Deily, n...@acm.org _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG