Hi, I have downloaded a package from PyPI that uses distutils setup.py. When I run it with -h it shows options for building and installing, but does not appear to have an option for installation in my per user site packages directory (see PEP 370). I think it would be useful to add a "--local" option to setup.py that would install into the per site package directory. This would allow people to keep their Linux distros pristine while still being able to install packages that their distros don't have. (Or is there such an option that I've missed?) (In my particular case it wasn't a problem; I just built it and moved it.) -- Mark Summerfield, Qtrac Ltd, www.qtrac.eu C++, Python, Qt, PyQt - training and consultancy "Programming in Python 3" - ISBN 0321680561 http://www.qtrac.eu/py3book.html
Hi Mark On Thu, Jul 29, 2010 at 08:20:50AM +0100, Mark Summerfield wrote:
I have downloaded a package from PyPI that uses distutils setup.py. When I run it with -h it shows options for building and installing, but does not appear to have an option for installation in my per user site packages directory (see PEP 370).
(Or is there such an option that I've missed?)
$ python2.6 setup.py --help install Shows you that you can use $ python2.6 setup.py install --user for this. You have to be using python2.6 or higher though. Note that this question doesn't really belong on python-ideas, it should have been posted to distutils-sig or python-list (comp.lang.python). But proposing a --local does make the line blurred ;-). Regards Floris -- Debian GNU/Linux -- The Power of Freedom www.debian.org | www.gnu.org | www.kernel.org
participants (2)
-
Floris Bruynooghe
-
Mark Summerfield