##// END OF EJS Templates
Cleaned up embedded shell and added cleanup method to InteractiveShell....
Cleaned up embedded shell and added cleanup method to InteractiveShell. * Added explicit code in InteractiveShell to make sure it cleans itself up. This is now done by the single method .cleanup, that can be called to have InteractiveShell cleanup. We can't use __del__ because of the many cycles in our object graph. * The embedded shell is refactored to no embedding logic is in the base class. Thus, InteractiveShell no longer takes an ``embedded`` argument. Just use InteractiveShellEmbed. * Created a super simple top-level :func:`embed` function that creates an InteractiveShellEmbed and calls it.

File last commit:

r2149:111bc948 merge
r2226:7053ea2c
Show More
build_release
42 lines | 1.3 KiB | text/plain | TextLexer
#!/usr/bin/env python
"""IPython release build script.
"""
from toollib import *
# Get main ipython dir, this will raise if it doesn't pass some checks
ipdir = get_ipdir()
cd(ipdir)
# Load release info
execfile(pjoin('IPython','core','release.py'))
# Check that everything compiles
compile_tree()
# Cleanup
for d in ['build','dist',pjoin('docs','build'),pjoin('docs','dist')]:
if os.path.isdir(d):
remove_tree(d)
# Build source and binary distros
c('./setup.py sdist --formats=gztar')
# Build version-specific RPMs, where we must use the --python option to ensure
# that the resulting RPM is really built with the requested python version (so
# things go to lib/python2.X/...)
c("python2.5 ./setup.py bdist_rpm --binary-only --release=py25 "
"--python=/usr/bin/python2.5")
c("python2.6 ./setup.py bdist_rpm --binary-only --release=py26 "
"--python=/usr/bin/python2.6")
# Build eggs
c('python2.5 ./setupegg.py bdist_egg')
c('python2.6 ./setupegg.py bdist_egg')
# Call the windows build separately, so that the extra Windows scripts don't
# get pulled into Unix builds (setup.py has code which checks for
# bdist_wininst)
c("python setup.py bdist_wininst --install-script=ipython_win_post_install.py")
# Change name so retarded Vista runs the installer correctly
c("rename 's/linux-i686/win32-setup/' dist/*.exe")