I'm trying to create an inproc hook written in Python for Hg/TortoiseHg. It supposed to parse the commit message and do custom operations on JIRA based on it. I'm trying to use http://jira.readthedocs.org/en/latest/#python-jira as jira API.
It works great when I test my script with python <myscript>.py
. But I have problems installing jira api into TortoiseHg. For my current python instance I just used pip install jira
. But it seems like TortoiseHg has its own python instance.
How can I install jira
into TortoiseHg
?
I've tried sys.path.append("myfolder")
, then adding myfolder
into my project and copying sources of jira
module there. Then I do from client import JIRA
, and looks like JIRA tries to load, but it seems that its dependency fails (I see No module named six.moves.urllib.parse
error). So it doesn't seem like a way.
I have very little python experience so I might miss something obvious. Are there any other options?