Using extensions that are not bundled with Mercurial on Windows
Stanimir Stamenkov
s7an10 at netscape.net
Sun Dec 27 17:15:13 UTC 2009
Sun, 27 Dec 2009 11:08:07 -0600, /Steve Borho/:
> Binary packages will completely ignore other Python installations on
> your machine. They hard-code the PYTHONPATH to only see Python files
> in their packaged library.zip file. If your extension needs Python
> modules which were not included in the binary package, you must edit
> the extension and add those other system Python paths to sys.path.
>
> http://bitbucket.org/tortoisehg/stable/wiki/FAQ#where-do-tortoisehg-extensions-look-for-external-python-modules-on-windows
Thanks for the pointer. Using it and some more tweaking like
installing additional dependencies (numpy) I was able to use the
activity extension. I had to add my <python>\lib location, also:
import sys
sys.path.append('<python25>\\Lib\\site-packages')
sys.path.append('<python25>\\Lib')
ss it was trying to load distutils.sysconfig module not found in the
library.zip.
--
Stanimir
More information about the Mercurial
mailing list