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