Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • thg thg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 829
    • Issues 829
    • List
    • Boards
    • Service Desk
    • Milestones
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mercurial
  • TortoiseHg
  • thgthg
  • Issues
  • #5743
Closed
Open
Created Sep 08, 2021 by Raphaël Gomès@raphael.gomesMaintainer

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.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking