##// END OF EJS Templates
Minor updates to release scripts, new backup one using SVN (a lot simpler).
fperez -
Show More
@@ -0,0 +1,22 b''
1 #!/bin/sh
2
3 # Simple backup script for ipython, to keep around a static copy of the whole
4 # project at the current version point. We do this by exporting from SVN.
5
6 # Config here
7 IPYTHONSVN=$HOME/ipython/svn/ipython/trunk
8 BACKUPDIR=$HOME/ipython/backup
9
10 ####
11 # Code begins
12 IPVERSION=`ipython -Version`
13 IPX=ipython-$IPVERSION
14 ARCHIVE=$BACKUPDIR/$IPX.tgz
15
16 svn export $IPYTHONSVN $IPX
17
18 tar czf $ARCHIVE $IPX
19
20 rm -rf $IPX
21
22 echo "Backup left in: $ARCHIVE"
@@ -37,32 +37,25 b' rm -rf $ipdir/dist/*'
37
37
38 # Perform local backup
38 # Perform local backup
39 cd $ipdir/tools
39 cd $ipdir/tools
40 ./bkp.py
40 ./bkp.sh
41
41
42 # Build source and binary distros
42 # Build source and binary distros
43 cd $ipdir
43 cd $ipdir
44 ./setup.py sdist --formats=gztar
44 ./setup.py sdist --formats=gztar
45 #./setup.py bdist_rpm --release=py$PYVER
46 python2.3 ./setup.py bdist_rpm --release=py23 --python=/usr/bin/python2.3
47
45
48 # A 2.4-specific RPM, where we must use the --python option to ensure that
46 # Build version-specific RPMs, where we must use the --python option to ensure
49 # the resulting RPM is really built with 2.4 (so things go to
47 # that the resulting RPM is really built with the requested python version (so
50 # lib/python2.4/...)
48 # things go to lib/python2.X/...)
49 python2.3 ./setup.py bdist_rpm --release=py23 --python=/usr/bin/python2.3
51 python2.4 ./setup.py bdist_rpm --release=py24 --python=/usr/bin/python2.4
50 python2.4 ./setup.py bdist_rpm --release=py24 --python=/usr/bin/python2.4
52
51
53 # Build eggs
52 # Build egg
54 python2.3 ./eggsetup.py bdist_egg
53 ./eggsetup.py bdist_egg
55 python2.4 ./eggsetup.py bdist_egg
56
54
57 # Call the windows build separately, so that the extra Windows scripts don't
55 # Call the windows build separately, so that the extra Windows scripts don't
58 # get pulled into Unix builds (setup.py has code which checks for
56 # get pulled into Unix builds (setup.py has code which checks for
59 # bdist_wininst)
57 # bdist_wininst)
60 #./setup.py bdist_wininst --install-script=ipython_win_post_install.py
58 ./setup.py bdist_wininst --install-script=ipython_win_post_install.py
61
62 # For now, make the win32 installer with a hand-built 2.3.5 python, which is
63 # the only one that fixes a crash in the post-install phase.
64 $HOME/tmp/local/bin/python2.3 setup.py bdist_wininst \
65 --install-script=ipython_win_post_install.py
66
59
67 # Register with the Python Package Index (PyPI)
60 # Register with the Python Package Index (PyPI)
68 echo "Registering with PyPI..."
61 echo "Registering with PyPI..."
@@ -11,12 +11,12 b' cd ~/ipython/ipython'
11
11
12 ./setup.py sdist --formats=gztar
12 ./setup.py sdist --formats=gztar
13
13
14 # Build rpms
14 python2.3 ./setup.py bdist_rpm --release=py23 --python=/usr/bin/python2.3
15 python2.3 ./setup.py bdist_rpm --release=py23 --python=/usr/bin/python2.3
15 python2.4 ./setup.py bdist_rpm --release=py24 --python=/usr/bin/python2.4
16 python2.4 ./setup.py bdist_rpm --release=py24 --python=/usr/bin/python2.4
16
17
17 # Build eggs
18 # Build eggs
18 python2.3 ./eggsetup.py bdist_egg
19 ./eggsetup.py bdist_egg
19 python2.4 ./eggsetup.py bdist_egg
20
20
21 # Call the windows build separately, so that the extra Windows scripts don't
21 # Call the windows build separately, so that the extra Windows scripts don't
22 # get pulled into Unix builds (setup.py has code which checks for
22 # get pulled into Unix builds (setup.py has code which checks for
@@ -24,5 +24,7 b' python2.4 ./eggsetup.py bdist_egg'
24
24
25 # For now, make the win32 installer with a hand-built 2.3.5 python, which is
25 # For now, make the win32 installer with a hand-built 2.3.5 python, which is
26 # the only one that fixes a crash in the post-install phase.
26 # the only one that fixes a crash in the post-install phase.
27 $HOME/tmp/local/bin/python2.3 setup.py bdist_wininst \
27 #$HOME/tmp/local/bin/python2.3 setup.py bdist_wininst \
28 --install-script=ipython_win_post_install.py
28 # --install-script=ipython_win_post_install.py
29
30 ./setup.py bdist_wininst --install-script=ipython_win_post_install.py
General Comments 0
You need to be logged in to leave comments. Login now