Message102732
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. |
|
Date |
User |
Action |
Args |
2010-04-09 17:07:03 | timkersten | set | recipients:
+ timkersten, tarek |
2010-04-09 17:07:03 | timkersten | set | messageid: <1270832823.07.0.795847639534.issue8357@psf.upfronthosting.co.za> |
2010-04-09 17:06:58 | timkersten | link | issue8357 messages |
2010-04-09 17:06:58 | timkersten | create | |
|