build_release
42 lines
| 1.3 KiB
| text/plain
|
TextLexer
/ tools / build_release
Fernando Perez
|
r1206 | #!/usr/bin/env python | ||
Fernando Perez
|
r2118 | """IPython release build script. | ||
ville
|
r988 | """ | ||
Fernando Perez
|
r2118 | from toollib import * | ||
ville
|
r988 | |||
Fernando Perez
|
r2118 | # Get main ipython dir, this will raise if it doesn't pass some checks | ||
ipdir = get_ipdir() | ||||
cd(ipdir) | ||||
ville
|
r988 | |||
Fernando Perez
|
r2118 | # Load release info | ||
Brian Granger
|
r2146 | execfile(pjoin('IPython','core','release.py')) | ||
ville
|
r988 | |||
Fernando Perez
|
r2118 | # Check that everything compiles | ||
compile_tree() | ||||
ville
|
r988 | |||
Fernando Perez
|
r2118 | # Cleanup | ||
for d in ['build','dist',pjoin('docs','build'),pjoin('docs','dist')]: | ||||
if os.path.isdir(d): | ||||
remove_tree(d) | ||||
Ville M. Vainio
|
r1197 | |||
# Build source and binary distros | ||||
Fernando Perez
|
r2432 | c('./setup.py sdist --formats=gztar,zip') | ||
Ville M. Vainio
|
r1197 | |||
Fernando Perez
|
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/...) | ||||
Fernando Perez
|
r2434 | #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
|
r1197 | |||
# Build eggs | ||||
Fernando Perez
|
r2119 | c('python2.5 ./setupegg.py bdist_egg') | ||
c('python2.6 ./setupegg.py bdist_egg') | ||||
ville
|
r988 | |||
Fernando Perez
|
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) | ||||
Fernando Perez
|
r2434 | c("python ./setup.py bdist_wininst") | ||
ville
|
r988 | |||
Fernando Perez
|
r2118 | # Change name so retarded Vista runs the installer correctly | ||
Fernando Perez
|
r2121 | c("rename 's/linux-i686/win32-setup/' dist/*.exe") | ||