This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author timkersten
Recipients tarek, timkersten
Date 2010-04-09.17:06:58
SpamBayes Score 5.6139204e-11
Marked as misclassified No
Message-id <1270832823.07.0.795847639534.issue8357@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-04-09 17:07:03timkerstensetrecipients: + timkersten, tarek
2010-04-09 17:07:03timkerstensetmessageid: <1270832823.07.0.795847639534.issue8357@psf.upfronthosting.co.za>
2010-04-09 17:06:58timkerstenlinkissue8357 messages
2010-04-09 17:06:58timkerstencreate