##// END OF EJS Templates
Fixes to build/doc scripts.
Fernando Perez -
Show More
@@ -22,7 +22,7 b" name = 'ipython'"
22 # because bdist_rpm does not accept dashes (an RPM) convention, and
22 # because bdist_rpm does not accept dashes (an RPM) convention, and
23 # bdist_deb does not accept underscores (a Debian convention).
23 # bdist_deb does not accept underscores (a Debian convention).
24
24
25 revision = '117'
25 revision = '83'
26 branch = 'ipython'
26 branch = 'ipython'
27
27
28 if branch == 'ipython':
28 if branch == 'ipython':
@@ -22,9 +22,8 b' exclude doc/manual/*.log'
22 exclude doc/manual/*.out
22 exclude doc/manual/*.out
23 exclude doc/manual/*.pl
23 exclude doc/manual/*.pl
24 exclude doc/manual/*.tex
24 exclude doc/manual/*.tex
25 exclude doc/build/doctrees/*
25 exclude doc/build
26 exclude doc/build/latex/*
26 exclude doc/attic
27 exclude doc/build/html/_sources/*
28
27
29
28
30
29
@@ -34,3 +33,4 b' global-exclude *.flc'
34 global-exclude *.pyc
33 global-exclude *.pyc
35 global-exclude .dircopy.log
34 global-exclude .dircopy.log
36 global-exclude .svn
35 global-exclude .svn
36 global-exclude .bzr
1 NO CONTENT: file renamed from doc/ipnb_google_soc.lyx to doc/attic/ipnb_google_soc.lyx
NO CONTENT: file renamed from doc/ipnb_google_soc.lyx to doc/attic/ipnb_google_soc.lyx
1 NO CONTENT: file renamed from doc/nbexample.py to doc/attic/nbexample.py
NO CONTENT: file renamed from doc/nbexample.py to doc/attic/nbexample.py
1 NO CONTENT: file renamed from doc/nbexample_latex.py to doc/attic/nbexample_latex.py
NO CONTENT: file renamed from doc/nbexample_latex.py to doc/attic/nbexample_latex.py
1 NO CONTENT: file renamed from doc/nbexample_output.py to doc/attic/nbexample_output.py
NO CONTENT: file renamed from doc/nbexample_output.py to doc/attic/nbexample_output.py
1 NO CONTENT: file renamed from doc/new_design.lyx to doc/attic/new_design.lyx
NO CONTENT: file renamed from doc/new_design.lyx to doc/attic/new_design.lyx
@@ -1,3 +1,7 b''
1 #!/usr/bin/env python
2 """Script to build documentation using Sphinx.
3 """
4
1 import fileinput,os,sys
5 import fileinput,os,sys
2
6
3 def oscmd(c):
7 def oscmd(c):
@@ -11,6 +15,7 b" if sys.platform != 'win32':"
11 oscmd('sphinx-build -b latex -d build/doctrees source build/latex')
15 oscmd('sphinx-build -b latex -d build/doctrees source build/latex')
12
16
13 # Produce pdf.
17 # Produce pdf.
18 topdir = os.getcwd()
14 os.chdir('build/latex')
19 os.chdir('build/latex')
15
20
16 # Change chapter style to section style: allows chapters to start on
21 # Change chapter style to section style: allows chapters to start on
@@ -60,5 +65,10 b" if sys.platform != 'win32':"
60 oscmd('makeindex -s python.ist modipython.idx')
65 oscmd('makeindex -s python.ist modipython.idx')
61 oscmd('pdflatex ipython.tex')
66 oscmd('pdflatex ipython.tex')
62 oscmd('pdflatex ipython.tex')
67 oscmd('pdflatex ipython.tex')
63 oscmd('cp ipython.pdf ../html')
68
64 os.chdir('../..')
69 # Create a manual/ directory with final html/pdf output
70 os.chdir(topdir)
71 oscmd('rm -rf manual')
72 oscmd('mkdir manual')
73 oscmd('cp -r build/html/*.html build/html/_static manual/')
74 oscmd('cp build/latex/ipython.pdf manual/')
@@ -1,5 +1,8 b''
1 import os,sys,shutil
1 #!/usr/bin/env python
2 """Simple script to create a tarball with proper bzr version info.
3 """
2
4
5 import os,sys,shutil
3
6
4 basever = '0.8.3'
7 basever = '0.8.3'
5
8
@@ -1,11 +1,10 b''
1 """ Create ipykit and exe installer
1 #!/usr/bin/env python
2 """IPython release script
2
3
3 requires py2exe
4 Create ipykit and exe installer
4
5
6 requires py2exe
5 """
7 """
6 #!/bin/sh
7 # IPython release script
8
9
8
10 import os
9 import os
11 import distutils.dir_util
10 import distutils.dir_util
@@ -19,7 +18,6 b' def c(cmd):'
19
18
20 ipykit_name = "ipykit-%s" % version
19 ipykit_name = "ipykit-%s" % version
21
20
22
23 os.chdir('..')
21 os.chdir('..')
24 if os.path.isdir('dist'):
22 if os.path.isdir('dist'):
25 distutils.dir_util.remove_tree('dist')
23 distutils.dir_util.remove_tree('dist')
@@ -4,6 +4,7 b''
4 PYVER=`python -V 2>&1 | awk '{print $2}' | awk -F '.' '{print $1$2}' `
4 PYVER=`python -V 2>&1 | awk '{print $2}' | awk -F '.' '{print $1$2}' `
5 version=`ipython -Version`
5 version=`ipython -Version`
6 ipdir=~/ipython/ipython
6 ipdir=~/ipython/ipython
7 ipbackupdir=~/ipython/backup
7
8
8 echo
9 echo
9 echo "Releasing IPython version $version"
10 echo "Releasing IPython version $version"
@@ -37,7 +38,8 b' rm -rf $ipdir/dist/*'
37
38
38 # Perform local backup
39 # Perform local backup
39 cd $ipdir/tools
40 cd $ipdir/tools
40 ./bkp.sh
41 ./make_tarball.py
42 mv ipython-*.tgz $ipbackupdir
41
43
42 # Build source and binary distros
44 # Build source and binary distros
43 cd $ipdir
45 cd $ipdir
@@ -50,8 +52,8 b' python2.4 ./setup.py bdist_rpm --binary-only --release=py24 --python=/usr/bin/py'
50 python2.5 ./setup.py bdist_rpm --binary-only --release=py25 --python=/usr/bin/python2.5
52 python2.5 ./setup.py bdist_rpm --binary-only --release=py25 --python=/usr/bin/python2.5
51
53
52 # Build eggs
54 # Build eggs
53 python2.4 ./eggsetup.py bdist_egg
55 python2.4 ./setup_bdist_egg.py
54 python2.5 ./eggsetup.py bdist_egg
56 python2.5 ./setup_bdist_egg.py
55
57
56 # Call the windows build separately, so that the extra Windows scripts don't
58 # Call the windows build separately, so that the extra Windows scripts don't
57 # get pulled into Unix builds (setup.py has code which checks for
59 # get pulled into Unix builds (setup.py has code which checks for
@@ -72,7 +74,7 b' echo "Uploading distribution files..."'
72 scp * ipython@ipython.scipy.org:www/dist/
74 scp * ipython@ipython.scipy.org:www/dist/
73
75
74 echo "Uploading backup files..."
76 echo "Uploading backup files..."
75 cd ~/ipython/backup
77 cd $ipbackupdir
76 scp `ls -1tr | tail -1` ipython@ipython.scipy.org:www/backup/
78 scp `ls -1tr | tail -1` ipython@ipython.scipy.org:www/backup/
77
79
78 echo "Updating webpage..."
80 echo "Updating webpage..."
@@ -86,8 +88,8 b' cd $www'
86
88
87 # Alert package maintainers
89 # Alert package maintainers
88 echo "Alerting package maintainers..."
90 echo "Alerting package maintainers..."
89 maintainers='fperez@colorado.edu ariciputi@users.sourceforge.net jack@xiph.org tretkowski@inittab.de dryice@hotpop.com willmaier@ml1.net'
91 #maintainers='fernando.perez@berkeley.edu ariciputi@users.sourceforge.net jack@xiph.org tretkowski@inittab.de dryice@hotpop.com willmaier@ml1.net'
90 #maintainers='fperez@colorado.edu'
92 maintainers='fernando.perez@berkeley.edu'
91
93
92 for email in $maintainers
94 for email in $maintainers
93 do
95 do
@@ -16,8 +16,8 b' python2.4 ./setup.py bdist_rpm --binary-only --release=py24 --python=/usr/bin/py'
16 python2.5 ./setup.py bdist_rpm --binary-only --release=py25 --python=/usr/bin/python2.5
16 python2.5 ./setup.py bdist_rpm --binary-only --release=py25 --python=/usr/bin/python2.5
17
17
18 # Build eggs
18 # Build eggs
19 python2.4 ./eggsetup.py bdist_egg
19 python2.4 ./setup_bdist_egg.py
20 python2.5 ./eggsetup.py bdist_egg
20 python2.5 ./setup_bdist_egg.py
21
21
22 # Call the windows build separately, so that the extra Windows scripts don't
22 # Call the windows build separately, so that the extra Windows scripts don't
23 # get pulled into Unix builds (setup.py has code which checks for
23 # get pulled into Unix builds (setup.py has code which checks for
General Comments 0
You need to be logged in to leave comments. Login now