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