Cannot use local hg install
For some reason, pip install --global-option="--rust"
does not work, and I haven't found a way yet of installing mercurial with Rust with pip. So I thought I'd use HGPATH=/directory/where/hg/source/is ./thg
, but I'm getting:
Traceback (most recent call last):
File "./thg", line 52, in <module>
from setup import build_ui
File "/home/alphare/workspace/octobus/tortoisehg/thg/setup.py", line 30, in <module>
from i18n.msgfmt import Msgfmt
File "/home/alphare/workspace/octobus/tortoisehg/thg/i18n/msgfmt.py", line 39, in <module>
from mercurial import (
ModuleNotFoundError: No module named 'mercurial'
Because build_ui
somehow calls mercurial before it can be set. And even if I put the sys.path
manipulation before the build_ui
business, I get another error about mercurial/__version__.py
doesn't existing, which makes me think this whole HGPATH=
thing does not work anymore.
The reason why I need a Rust version is because my mercurial-devel checkout uses the Rust nodemap, which adds a requirement.