ez_setup doesn't finish partial install

I was trying to install setuptools, and I ended up running into a permissions error: % MACOSX_DEPLOYMENT_TARGET=10.4 python ez_setup.py Downloading http://www.python.org/packages/source/s/setuptools/setuptools-0.5a11-py2.3.e... Processing setuptools-0.5a11-py2.3.egg Copying setuptools-0.5a11-py2.3.egg to /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages Adding setuptools 0.5a11 to easy-install.pth file Installing easy_install.py script to /System/Library/Frameworks/Python.framework/Versions/2.3/bin error: /System/Library/Frameworks/Python.framework/Versions/2.3/bin/easy_install.py: Permission denied So I fixed permissions and tried again: % MACOSX_DEPLOYMENT_TARGET=10.4 python ez_setup.py Setuptools successfully installed or upgraded. But after the above, I still don't have an easy_install.py script. I had to delete the easy-install and setuptools .egg and .pth files from /Library/Python/2.3/site-packages to get it to install easy_install.py. -- Nicholas Riley <njriley@uiuc.edu> | <http://www.uiuc.edu/ph/www/njriley>

On Jul 12, 2005, at 10:06 AM, Nicholas Riley wrote:
I was trying to install setuptools, and I ended up running into a permissions error:
% MACOSX_DEPLOYMENT_TARGET=10.4 python ez_setup.py Downloading http://www.python.org/packages/source/s/setuptools/ setuptools-0.5a11-py2.3.egg.zip Processing setuptools-0.5a11-py2.3.egg Copying setuptools-0.5a11-py2.3.egg to /System/Library/Frameworks/ Python.framework/Versions/2.3/lib/python2.3/site-packages Adding setuptools 0.5a11 to easy-install.pth file Installing easy_install.py script to /System/Library/Frameworks/ Python.framework/Versions/2.3/bin error: /System/Library/Frameworks/Python.framework/Versions/2.3/bin/ easy_install.py: Permission denied
The default location for binaries is in-framework, which is almost always the last place you want to have it. Especially for the System Python. You want to override this default like bdist_mpkg does. I don't know the ez_setup syntax for it, but the distutils install command option is --install-scripts=/usr/local/bin -bob

At 10:44 AM 7/12/2005 -1000, Bob Ippolito wrote:
You want to override this default like bdist_mpkg does. I don't know the ez_setup syntax for it, but the distutils install command option is --install-scripts=/usr/local/bin
It's also the option for easy_install, and easy_install will take its default from the same place the distutils does; so you can do something like this: [install] install_scripts = /usr/local/bin in ~/.pydistutils.cfg and it will work for all distutils installs as well as EasyInstall.

At 03:06 PM 7/12/2005 -0500, Nicholas Riley wrote:
I was trying to install setuptools, and I ended up running into a permissions error:
% MACOSX_DEPLOYMENT_TARGET=10.4 python ez_setup.py Downloading http://www.python.org/packages/source/s/setuptools/setuptools-0.5a11-py2.3.e... Processing setuptools-0.5a11-py2.3.egg Copying setuptools-0.5a11-py2.3.egg to /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages Adding setuptools 0.5a11 to easy-install.pth file Installing easy_install.py script to /System/Library/Frameworks/Python.framework/Versions/2.3/bin error: /System/Library/Frameworks/Python.framework/Versions/2.3/bin/easy_install.py: Permission denied
So I fixed permissions and tried again:
% MACOSX_DEPLOYMENT_TARGET=10.4 python ez_setup.py Setuptools successfully installed or upgraded.
But after the above, I still don't have an easy_install.py script. I had to delete the easy-install and setuptools .egg and .pth files from /Library/Python/2.3/site-packages to get it to install easy_install.py.
FYI, you can run "ez_setup -U setuptools" to force an upgrade/reinstall. I've added a message about this after the "installed or upgraded" message, that will appear in the next release.
participants (3)
-
Bob Ippolito
-
Nicholas Riley
-
Phillip J. Eby