installing mercurial without changing PYTHONPATH

Colin McMillen mcmillen at cs.cmu.edu
Thu Jun 22 14:00:43 CDT 2006


> > Instead of having to set PYTHONPATH - why not have
> > 'prefix-path/bin/hg' modified [during install] to use the correct path
> > with something like:
>
> This is not portable.  Different OSes call "lib" different names, and
> it's a pain (and worse, slow) to try to use distutils to try to get the
> right answer.

How about allowing the user to specify at setup-time, if the user
knows? I'd much rather type in a directory (or specify it via
command-line argument) than clutter up PYTHONPATH, which can affect
the performance (and possibly behavior) of other Python programs. In
my opinion, relying on environment variables should be the absolute
last resort.

> > BTW: Whats the difference between '--prefix' & '--home' options to setup?
> 
> I believe they mean the same thing.

They don't quite put files in the same places, at least for me (one
creates more subdirectories than the other, though I don't remember
which off the top of my head.)

- Colin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://www.selenic.com/pipermail/mercurial/attachments/20060622/f0882615/attachment.pgp


More information about the Mercurial mailing list