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 | 38 | # Perform local backup |
|
39 | 39 | cd $ipdir/tools |
|
40 |
./bkp. |
|
|
40 | ./bkp.sh | |
|
41 | 41 | |
|
42 | 42 | # Build source and binary distros |
|
43 | 43 | cd $ipdir |
|
44 | 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 |
# |
|
|
49 |
# the resulting RPM is really built with |
|
|
50 |
# lib/python2. |
|
|
46 | # Build version-specific RPMs, where we must use the --python option to ensure | |
|
47 | # that the resulting RPM is really built with the requested python version (so | |
|
48 | # things go to lib/python2.X/...) | |
|
49 | python2.3 ./setup.py bdist_rpm --release=py23 --python=/usr/bin/python2.3 | |
|
51 | 50 | python2.4 ./setup.py bdist_rpm --release=py24 --python=/usr/bin/python2.4 |
|
52 | 51 | |
|
53 |
# Build egg |
|
|
54 |
|
|
|
55 | python2.4 ./eggsetup.py bdist_egg | |
|
52 | # Build egg | |
|
53 | ./eggsetup.py bdist_egg | |
|
56 | 54 | |
|
57 | 55 | # Call the windows build separately, so that the extra Windows scripts don't |
|
58 | 56 | # get pulled into Unix builds (setup.py has code which checks for |
|
59 | 57 | # bdist_wininst) |
|
60 |
|
|
|
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 | |
|
58 | ./setup.py bdist_wininst --install-script=ipython_win_post_install.py | |
|
66 | 59 | |
|
67 | 60 | # Register with the Python Package Index (PyPI) |
|
68 | 61 | echo "Registering with PyPI..." |
@@ -11,12 +11,12 b' cd ~/ipython/ipython' | |||
|
11 | 11 | |
|
12 | 12 | ./setup.py sdist --formats=gztar |
|
13 | 13 | |
|
14 | # Build rpms | |
|
14 | 15 | python2.3 ./setup.py bdist_rpm --release=py23 --python=/usr/bin/python2.3 |
|
15 | 16 | python2.4 ./setup.py bdist_rpm --release=py24 --python=/usr/bin/python2.4 |
|
16 | 17 | |
|
17 | 18 | # Build eggs |
|
18 |
|
|
|
19 | python2.4 ./eggsetup.py bdist_egg | |
|
19 | ./eggsetup.py bdist_egg | |
|
20 | 20 | |
|
21 | 21 | # Call the windows build separately, so that the extra Windows scripts don't |
|
22 | 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 | 25 | # For now, make the win32 installer with a hand-built 2.3.5 python, which is |
|
26 | 26 | # the only one that fixes a crash in the post-install phase. |
|
27 | $HOME/tmp/local/bin/python2.3 setup.py bdist_wininst \ | |
|
28 | --install-script=ipython_win_post_install.py | |
|
27 | #$HOME/tmp/local/bin/python2.3 setup.py bdist_wininst \ | |
|
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