I'd like to access a mercurial grain from an ipython notebook in sandstorm.
I managed to get mercurial installed inside an ipython grain by uploading the source and using it in pure python mode (some details below).
But I can't figure out how to connect to the https address given in the mercurial grain. https://docs.sandstorm.io/en/latest/developing/powerbox/ says HTTP_PROXY
should be set, but I get KeyError
from os.environ['HTTP_PROXY']
.
sys.argv = ['setup.py', '--pure', 'build_py', '-c', '-d', '.']
execfile("./setup.py")
sys.argv = ['setup.py', '--pure', 'build_hgexe', '-i']
execfile("./setup.py")