##// END OF EJS Templates
Stop building rpms (they were broken)....
Fernando Perez -
Show More
@@ -1,42 +1,34 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,zip')
22 c('./setup.py sdist --formats=gztar,zip')
23
23
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
26 # things go to lib/python2.X/...)
27 #c("python2.5 ./setup.py bdist_rpm --binary-only --release=py25 "
28 # "--python=/usr/bin/python2.5")
29 #c("python2.6 ./setup.py bdist_rpm --binary-only --release=py26 "
30 # "--python=/usr/bin/python2.6")
31
32 # Build eggs
24 # Build eggs
33 c('python2.5 ./setupegg.py bdist_egg')
25 c('python2.5 ./setupegg.py bdist_egg')
34 c('python2.6 ./setupegg.py bdist_egg')
26 c('python2.6 ./setupegg.py bdist_egg')
35
27
36 # Call the windows build separately, so that the extra Windows scripts don't
28 # 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
29 # get pulled into Unix builds (setup.py has code which checks for
38 # bdist_wininst)
30 # bdist_wininst)
39 c("python ./setup.py bdist_wininst")
31 c("python setup.py bdist_wininst")
40
32
41 # Change name so retarded Vista runs the installer correctly
33 # Change name so retarded Vista runs the installer correctly
42 c("rename 's/linux-i686/win32-setup/' dist/*.exe")
34 c("rename 's/linux-i686/win32-setup/' dist/*.exe")
@@ -1,43 +1,44 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python
2 """IPython release script.
2 """IPython release script.
3
3
4 This should only be run at real release time.
4 This should only be run at real release time.
5 """
5 """
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 # Where I keep static backups of each release
16 # Where I keep static backups of each release
17 ipbackupdir = os.path.expanduser('~/ipython/backup')
17 ipbackupdir = os.path.expanduser('~/ipython/backup')
18
18
19 print
19 print
20 print "Releasing IPython version $version"
20 print "Releasing IPython version $version"
21 print "=================================="
21 print "=================================="
22
22
23 # Perform local backup
23 # Perform local backup
24 c('./make_tarball.py')
24 c('./make_tarball.py')
25 c('mv ipython-*.tgz %s' % ipbackupdir)
25 c('mv ipython-*.tgz %s' % ipbackupdir)
26
26
27 # Build release files
27 # Build release files
28 c('./mkrel.py %s' % ipdir)
28 #c('./mkrel.py %s' % ipdir)
29 c('./build_release')
29
30
30 # Register with the Python Package Index (PyPI)
31 # Register with the Python Package Index (PyPI)
31 print "Registering with PyPI..."
32 print "Registering with PyPI..."
32 c('./setup.py register')
33 c('./setup.py register')
33
34
34 # Upload all files
35 # Upload all files
35 cd('dist')
36 cd('dist')
36 print "Uploading distribution files..."
37 print "Uploading distribution files..."
37 c('scp * ipython@ipython.scipy.org:www/dist/')
38 c('scp * ipython@ipython.scipy.org:www/dist/')
38
39
39 print "Uploading backup files..."
40 print "Uploading backup files..."
40 cd(ipbackupdir)
41 cd(ipbackupdir)
41 c('scp `ls -1tr *tgz | tail -1` ipython@ipython.scipy.org:www/backup/')
42 c('scp `ls -1tr *tgz | tail -1` ipython@ipython.scipy.org:www/backup/')
42
43
43 print "Done!"
44 print "Done!"
General Comments 0
You need to be logged in to leave comments. Login now