Dr Rainer Woitok <[email protected]> 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

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Mercurial mailing list
[email protected]
https://www.mercurial-scm.org/mailman/listinfo/mercurial

Reply via email to