[Distutils] installing to a non-standard directory
K. Richard Pixley
rich at noir.com
Sat Nov 20 00:18:24 CET 2010
I'm trying to install to a non-standard directory. Something akin to
"python setup.py install --prefix=`pwd`/junk" using gnu makefile
standards semantics for --prefix but I can't seem to find the right
arguments to install to make this happen. The closest I can seem to
find is:
python setup.py install --prefix=`pwd`/junk --install-layout=unix
But that returns errors:
distutils.errors.DistutilsError: 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:
'/home/rich/projects/rcmp/junk/lib/python2.6/site-packages/test-easy-install-12743.pth'
The installation directory you specified (via --install-dir,
--prefix, or
the distutils default setting) was:
/home/rich/projects/rcmp/junk/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).
Although there doesn't appear to be any --install-dir option.
Can anyone explain what any of the 13 options related to this are
intended to do? Or better, can anyone tell me which one I want?
--rich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20101119/730a20a4/attachment.html>
More information about the Distutils-SIG
mailing list