setuptools error when using --prefix option, complains directory does not exist
Hi I am installing setuptools using the --prefix option it complains the directory does not exist even though it does. The install works however when I use the --instal-dir option as it recommends. Thought I would pass this along Hari macbook-pro-17:~ hari$ sudo sh setuptools-0.6c11-py2.6.egg --prefix=/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages error: can't create or remove files in install directory The following error occurred while trying to add or remove files in the installation directory: [Errno 2] No such file or directory: '/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/lib/python2.6/site-packages/test-easy-install-79530.pth' The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/lib/python2.6/site-packages This directory does not currently exist. Please create it and try again, or choose a different installation directory (using the -d or --install-dir option).
Hari, I think this works if you use "--root=/" along with "--prefix=foo". So, if you wanted to install in, for example, "/Library/MyPackage/", you'd say, "--root=/ --prefix=/Library/MyPackage". I think this is better than using "--install-dir", because it handles platform issues like "lib" vs "lib64" on Red Hat. Bill
participants (2)
-
Bill Janssen -
hari jayaram