"hg-git" and "hgsubversion" extensions
Arne Babenhauserheide
arne_bab at web.de
Wed Dec 18 19:55:34 UTC 2019
Dr Rainer Woitok <rainer.woitok at gmail.com> writes:
> Gentoo installed the extensions in "/usr/lib64/python2.7/site-packages/"
> as directories "hggit/" and "hgsubversion/", respectively. Assuming
> this already is in Python's search path I just specified
>
> hggit =
> hgsubversion =
>
> but this didn't work. According to the man page the alternative is to
> specify the full path to the extension, including the ".py" suffix. But
> which of the plethora of "*.py" files is the correct one? I tried
>
> /usr/lib64/python2.7/site-packages/hggit/__init__.py
>
> and the corresponding file for "hgsubversion" but it didn't work:
>
> $ hg st
> *** failed to import extension hggit from /usr/lib64/python2.7/site-packages/hggit/__init__.py: No module named 'gitrepo'
> *** failed to import extension hgsubversion from /usr/lib64/python2.7/site-packages/hgsubversion/__init__.py: No module named 'svncommands'
> M .hgrc
> $
>
> Do I have to set "PYTHONPATH"? To which value exactly?
On Gentoo that should include /usr/lib64/python2.7
> What am I missing?
Can you try this?
hggit = /usr/lib64/python2.7/site-packages/hggit/
(or a subdirectory if this does not work)
hggit and hgsubversion use the package, not the file.
Best wishes,
Arne
--
Unpolitisch sein
heißt politisch sein
ohne es zu merken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1076 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20191218/0274d177/attachment.asc>
More information about the Mercurial
mailing list