Show More
@@ -1,42 +1,42 | |||
|
1 | 1 | #!/usr/bin/env python |
|
2 | 2 | """IPython release build script. |
|
3 | 3 | """ |
|
4 | 4 | from toollib import * |
|
5 | 5 | |
|
6 | 6 | # Get main ipython dir, this will raise if it doesn't pass some checks |
|
7 | 7 | ipdir = get_ipdir() |
|
8 | 8 | cd(ipdir) |
|
9 | 9 | |
|
10 | 10 | # Load release info |
|
11 | 11 | execfile(pjoin('IPython','core','release.py')) |
|
12 | 12 | |
|
13 | 13 | # Check that everything compiles |
|
14 | 14 | compile_tree() |
|
15 | 15 | |
|
16 | 16 | # Cleanup |
|
17 | 17 | for d in ['build','dist',pjoin('docs','build'),pjoin('docs','dist')]: |
|
18 | 18 | if os.path.isdir(d): |
|
19 | 19 | remove_tree(d) |
|
20 | 20 | |
|
21 | 21 | # Build source and binary distros |
|
22 | c('./setup.py sdist --formats=gztar') | |
|
22 | c('./setup.py sdist --formats=gztar,zip') | |
|
23 | 23 | |
|
24 | 24 | # Build version-specific RPMs, where we must use the --python option to ensure |
|
25 | 25 | # that the resulting RPM is really built with the requested python version (so |
|
26 | 26 | # things go to lib/python2.X/...) |
|
27 | 27 | c("python2.5 ./setup.py bdist_rpm --binary-only --release=py25 " |
|
28 | 28 | "--python=/usr/bin/python2.5") |
|
29 | 29 | c("python2.6 ./setup.py bdist_rpm --binary-only --release=py26 " |
|
30 | 30 | "--python=/usr/bin/python2.6") |
|
31 | 31 | |
|
32 | 32 | # Build eggs |
|
33 | 33 | c('python2.5 ./setupegg.py bdist_egg') |
|
34 | 34 | c('python2.6 ./setupegg.py bdist_egg') |
|
35 | 35 | |
|
36 | 36 | # Call the windows build separately, so that the extra Windows scripts don't |
|
37 | 37 | # get pulled into Unix builds (setup.py has code which checks for |
|
38 | 38 | # bdist_wininst) |
|
39 | 39 | c("python setup.py bdist_wininst --install-script=ipython_win_post_install.py") |
|
40 | 40 | |
|
41 | 41 | # Change name so retarded Vista runs the installer correctly |
|
42 | 42 | c("rename 's/linux-i686/win32-setup/' dist/*.exe") |
General Comments 0
You need to be logged in to leave comments.
Login now