Booting up 0.9.4

Satish Balay balay at fastmail.fm
Tue Jul 24 11:10:56 CDT 2007


On Tue, 24 Jul 2007, Clint Olsen wrote:

> On Jul 24, Mark A. Flacy wrote:
> > Perhaps you have crud left over from earlier installations;  I don't
> > have PYTHONPATH set at all.  I also don't have any Mercurial specific
> > environment variables preset to get Mercurial to run.
> 
> Yes, I probably do.  I was trying to examine the FreeBSD port to see how
> they got around this env var problem, but I clearly cannot run it without
> setting PYTHONPATH.  This is a plain per-user install on Linux as an
> unprivileged user.

I firmly believe that relying on PYTHONPATH is a bad thing for
non-system install of mercurial. It messes up multiple installs [of
either python or mercurial]. It also prevents effective use of a
common mercurial install for multiple users [as everyone will have to
set PYTHONPATH correctly to use this common install - and this is
error prone]

I do the following to install mercurial to avoid the above issues.

- install mercurial as:
python setup.py install --home=/home/balay/mercurial

- now update the PYTHONPATH equivalent - manually by editing
/home/balay/mercurial/bin/hg and adding the following lines at the
begining.

>>>>
import sys
sys.path.insert(0,'/home/balay/mercurial/lib/python')
<<<<

Satish



More information about the Mercurial mailing list