I installed ‘mercurial’ from the official repositories (extra).
I run TortoiseHg from source because it has an annoying bug that they don’t seem to be willing to fix, for which the fix is just a one-line change in the source code; so I patch it myself, then every once in a while I update it and patch it again, and so on.
Everything else required by TortoiseHg and Mercurial I have installed with Pamac.
I need the mercurial_keyring extension but there doesn’t seem to be a package for that (not in the AUR either).
So I tried pip install --user mercurial_keyring
but I get this error:
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try 'pacman -S
python-xyz', where xyz is the package you are trying to
install.
If you wish to install a non-Arch-packaged Python package,
create a virtual environment using 'python -m venv path/to/venv'.
Then use path/to/venv/bin/python and path/to/venv/bin/pip.
If you wish to install a non-Arch packaged Python application,
it may be easiest to use 'pipx install xyz', which will manage a
virtual environment for you. Make sure you have python-pipx
installed via pacman.
The second paragraph (create a virtual environment) seems like a viable solution; however, if I do that, I don’t know how to tell Mercurial and TortoiseHg to use the python in the virtual environment rather than the system-wide one…