jparyani / ipython

Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.
http://ipython.org
6 stars 6 forks source link

access mercurial grain from ipython notebook? via powerbox? #15

Open dckc opened 7 years ago

dckc commented 7 years ago

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")
dckc commented 6 years ago

funny... I tried the same thing again today and in my searching around, ended up back here.

For today, I got distracted by trying to install hg as a wheel and used up most of my energy.

I could have uploaded an .hg bundle rather than access to a mercurial grain, today.