##// END OF EJS Templates
Allow recursive execution of IPython code in MTInteractiveShell.runsource by checking if we are already in worker thread, and execute code directly if we are.
Allow recursive execution of IPython code in MTInteractiveShell.runsource by checking if we are already in worker thread, and execute code directly if we are.

File last commit:

r1049:c87d640e
r1053:da4dd09c
Show More
setup_bdist_egg.py
19 lines | 468 B | text/x-python | PythonLexer
#!/usr/bin/env python
"""Wrapper to build IPython as an egg (setuptools format)."""
import os
import sys
# Add my local path to sys.path
home = os.environ['HOME']
sys.path.insert(0,'%s/usr/local/lib/python%s/site-packages' %
(home,sys.version[:3]))
# now, import setuptools and build the actual egg
import setuptools
sys.argv=['','bdist_egg']
execfile('setup.py')
# clean up the junk left around by setuptools
os.system('rm -rf ipython.egg-info')