build_release
39 lines
| 892 B
| text/plain
|
TextLexer
/ tools / build_release
Fernando Perez
|
r1206 | #!/usr/bin/env python | ||
Fernando Perez
|
r2118 | """IPython release build script. | ||
ville
|
r988 | """ | ||
Fernando Perez
|
r6601 | |||
import os | ||||
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 | ||
Fernando Perez
|
r4451 | execfile(pjoin('IPython', 'core', 'release.py')) | ||
ville
|
r988 | |||
Fernando Perez
|
r2118 | # Check that everything compiles | ||
compile_tree() | ||||
ville
|
r988 | |||
Fernando Perez
|
r2118 | # Cleanup | ||
Fernando Perez
|
r4451 | for d in ['build', 'dist', pjoin('docs', 'build'), pjoin('docs', 'dist'), | ||
pjoin('docs', 'source', 'api', 'generated')]: | ||||
Fernando Perez
|
r2118 | if os.path.isdir(d): | ||
remove_tree(d) | ||||
Ville M. Vainio
|
r1197 | |||
# Build source and binary distros | ||||
Fernando Perez
|
r6605 | sh(sdists) | ||
Ville M. Vainio
|
r1197 | |||
# Build eggs | ||||
Fernando Perez
|
r6605 | sh(eggs) | ||
ville
|
r988 | |||
Fernando Perez
|
r6604 | # Run windows builds | ||
map(sh, win_builds) | ||||
ville
|
r988 | |||
Fernando Perez
|
r2118 | # Change name so retarded Vista runs the installer correctly | ||
Fernando Perez
|
r6601 | sh("rename 's/linux-i686/win32/' dist/*.exe") | ||
sh("rename 's/linux-x86_64/win32/' dist/*.exe") | ||||
sh("rename 's/amd64/amd64-setup/' dist/*.exe") | ||||
# exe files aren't really executable under *nix. | ||||
sh("chmod -x dist/*.exe") | ||||