Show More
@@ -1,39 +1,38 b'' | |||
|
1 | 1 | #!/usr/bin/env python |
|
2 | 2 | """IPython release build script. |
|
3 | 3 | """ |
|
4 | 4 | |
|
5 | 5 | import os |
|
6 | 6 | |
|
7 | 7 | from toollib import * |
|
8 | 8 | |
|
9 | 9 | # Get main ipython dir, this will raise if it doesn't pass some checks |
|
10 | 10 | ipdir = get_ipdir() |
|
11 | 11 | cd(ipdir) |
|
12 | 12 | |
|
13 | 13 | # Load release info |
|
14 | 14 | execfile(pjoin('IPython', 'core', 'release.py')) |
|
15 | 15 | |
|
16 | 16 | # Check that everything compiles |
|
17 | 17 | compile_tree() |
|
18 | 18 | |
|
19 | 19 | # Cleanup |
|
20 | 20 | for d in ['build', 'dist', pjoin('docs', 'build'), pjoin('docs', 'dist'), |
|
21 | 21 | pjoin('docs', 'source', 'api', 'generated')]: |
|
22 | 22 | if os.path.isdir(d): |
|
23 | 23 | remove_tree(d) |
|
24 | 24 | |
|
25 | 25 | # Build source and binary distros |
|
26 | 26 | sh(sdists) |
|
27 | 27 | |
|
28 | 28 | # Build eggs |
|
29 | 29 | sh(eggs) |
|
30 | 30 | |
|
31 | 31 | # Run windows builds |
|
32 | 32 | map(sh, win_builds) |
|
33 | 33 | |
|
34 | 34 | # Change name so retarded Vista runs the installer correctly |
|
35 | 35 | sh("rename 's/linux-i686/win32/' dist/*.exe") |
|
36 | 36 | sh("rename 's/linux-x86_64/win32/' dist/*.exe") |
|
37 | sh("rename 's/amd64/amd64-setup/' dist/*.exe") | |
|
38 | 37 | # exe files aren't really executable under *nix. |
|
39 | 38 | sh("chmod -x dist/*.exe") |
General Comments 0
You need to be logged in to leave comments.
Login now