##// END OF EJS Templates
Cleaned up release tools directory....
Cleaned up release tools directory. Converted almost all to python scripts and made toollib to collect common functions and avoid repetition. Properly commented and documented what each script does. The run_ipy_in_profiler one seems broken, I'm not sure what to do with it. We need to either fix it or remove it later, but it's not critical for 0.10.

File last commit:

r2118:ec9810f7
r2118:ec9810f7
Show More
mkrel.py
42 lines | 1.3 KiB | text/x-python | PythonLexer
Fernando Perez
Fixes to build/doc scripts.
r1206 #!/usr/bin/env python
Fernando Perez
Cleaned up release tools directory....
r2118 """IPython release build script.
ville
initialization (no svn history)
r988 """
Fernando Perez
Cleaned up release tools directory....
r2118 from toollib import *
ville
initialization (no svn history)
r988
Fernando Perez
Cleaned up release tools directory....
r2118 # Get main ipython dir, this will raise if it doesn't pass some checks
ipdir = get_ipdir()
cd(ipdir)
ville
initialization (no svn history)
r988
Fernando Perez
Cleaned up release tools directory....
r2118 # Load release info
execfile(pjoin('IPython','Release.py'))
ville
initialization (no svn history)
r988
Fernando Perez
Cleaned up release tools directory....
r2118 # Check that everything compiles
compile_tree()
ville
initialization (no svn history)
r988
Fernando Perez
Cleaned up release tools directory....
r2118 # Cleanup
for d in ['build','dist',pjoin('docs','build'),pjoin('docs','dist')]:
if os.path.isdir(d):
remove_tree(d)
Ville M. Vainio
mkrel changes (copy stff from 'release' sh script)
r1197
# Build source and binary distros
c('./setup.py sdist --formats=gztar')
Fernando Perez
Cleaned up release tools directory....
r2118 # 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")
Ville M. Vainio
mkrel changes (copy stff from 'release' sh script)
r1197
# Build eggs
c('python2.5 ./eggsetup.py bdist_egg')
Fernando Perez
Cleaned up release tools directory....
r2118 c('python2.6 ./eggsetup.py bdist_egg')
ville
initialization (no svn history)
r988
Fernando Perez
Cleaned up release tools directory....
r2118 # 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)
ville
initialization (no svn history)
r988 c("python setup.py bdist_wininst --install-script=ipython_win_post_install.py")
Fernando Perez
Cleaned up release tools directory....
r2118 # Change name so retarded Vista runs the installer correctly
c("rename 's/win32/win32-setup/' dist/*.exe")