##// END OF EJS Templates
Fix problems with side effects and python 2.6....
Fix problems with side effects and python 2.6. The isolation decorator wasn't working correctly (side effects were leaking into other tests by breaking the user namespace). Rewrote it to instead use a simpler but more robust strategy (that is also faster). See detailed comment in source for more. I discovered that some tests were failing when running with python 2.6 because of changes in the behavior of int and the new print-as-a-function that Wx seems to activate. Updated the code to cope with both 2.5 and 2.6.

File last commit:

r93:d01cf245
r2089:25180f38
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')