hgview #137074 hgview won't run [open]

I tried installing hgview this way:

python setup.py install --prefix=/tmp/hgview

Attempting to run hgview yields the following error:

Traceback (most recent call last):
  File "/tmp/hgview/bin/hgview", line 31, in <module>
    from hgviewlib.application import main
ImportError: No module named hgviewlib.application

Mercurial handles this gracefully by having setup.py replace string @LIBDIR@ in file hg by the appropriate library path.

done in<not specified>
closed by<not specified>