
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.)

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
参加者 (2)
-
Floris Bruynooghe
-
Mark Summerfield