Tim Kersten <tim.kers...@lincor.com> added the comment:

Ok, this is embarrassing. :-/

$ python setup.py install --root=/tmp/ --prefix=/usr
running install
error: must supply either home or prefix/exec-prefix -- not both

The above is not caused by specifying both --root and --prefix as I had 
assumed. It was my forgetting that I had specified the --home option in a 
setup.cfg file. I'm so sorry for wasting your time.

Having removed the setup.cfg file and have tested it again and now it behaves 
exactly as I had anticipated. i.e. --prefix is relative to --root, so it is 
actually possible to specify both.

In particular what this allows one to achieve is easiest shown by example:

A) $ python setup.py install --prefix=/tmp/test1
B) $ python setup.py install --prefix=/usr/special --root=/tmp/test2

in A) it installs as such:

/etc/mypythonapp.settings
/tmp/test1/mypythonapp/...

in B) it installs as such:
/tmp/test2/etc/mypythonapp.settings
/tmp/test2/usr/special/mypythonapp/...


This bug can be closed. Again, my apologies and thank you for taking the time 
to help me sort it out.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8357>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to