Skip to content

Commit

Permalink
Fixes to build/doc scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
fperez committed May 28, 2008
1 parent bafa847 commit 86a7612
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 21 deletions.
2 changes: 1 addition & 1 deletion IPython/Release.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# because bdist_rpm does not accept dashes (an RPM) convention, and
# bdist_deb does not accept underscores (a Debian convention).

revision = '117'
revision = '83'
branch = 'ipython'

if branch == 'ipython':
Expand Down
6 changes: 3 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ exclude doc/manual/*.log
exclude doc/manual/*.out
exclude doc/manual/*.pl
exclude doc/manual/*.tex
exclude doc/build/doctrees/*
exclude doc/build/latex/*
exclude doc/build/html/_sources/*
exclude doc/build
exclude doc/attic



Expand All @@ -34,3 +33,4 @@ global-exclude *.flc
global-exclude *.pyc
global-exclude .dircopy.log
global-exclude .svn
global-exclude .bzr
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 12 additions & 2 deletions doc/do_sphinx.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/usr/bin/env python
"""Script to build documentation using Sphinx.
"""

import fileinput,os,sys

def oscmd(c):
Expand All @@ -11,6 +15,7 @@ def oscmd(c):
oscmd('sphinx-build -b latex -d build/doctrees source build/latex')

# Produce pdf.
topdir = os.getcwd()
os.chdir('build/latex')

# Change chapter style to section style: allows chapters to start on
Expand Down Expand Up @@ -60,5 +65,10 @@ def oscmd(c):
oscmd('makeindex -s python.ist modipython.idx')
oscmd('pdflatex ipython.tex')
oscmd('pdflatex ipython.tex')
oscmd('cp ipython.pdf ../html')
os.chdir('../..')

# Create a manual/ directory with final html/pdf output
os.chdir(topdir)
oscmd('rm -rf manual')
oscmd('mkdir manual')
oscmd('cp -r build/html/*.html build/html/_static manual/')
oscmd('cp build/latex/ipython.pdf manual/')
5 changes: 4 additions & 1 deletion tools/make_tarball.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import os,sys,shutil
#!/usr/bin/env python
"""Simple script to create a tarball with proper bzr version info.
"""

import os,sys,shutil

basever = '0.8.3'

Expand Down
10 changes: 4 additions & 6 deletions tools/mkrel.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
""" Create ipykit and exe installer
#!/usr/bin/env python
"""IPython release script
requires py2exe
Create ipykit and exe installer
requires py2exe
"""
#!/bin/sh
# IPython release script


import os
import distutils.dir_util
Expand All @@ -19,7 +18,6 @@ def c(cmd):

ipykit_name = "ipykit-%s" % version


os.chdir('..')
if os.path.isdir('dist'):
distutils.dir_util.remove_tree('dist')
Expand Down
14 changes: 8 additions & 6 deletions tools/release
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
PYVER=`python -V 2>&1 | awk '{print $2}' | awk -F '.' '{print $1$2}' `
version=`ipython -Version`
ipdir=~/ipython/ipython
ipbackupdir=~/ipython/backup

echo
echo "Releasing IPython version $version"
Expand Down Expand Up @@ -37,7 +38,8 @@ rm -rf $ipdir/dist/*

# Perform local backup
cd $ipdir/tools
./bkp.sh
./make_tarball.py
mv ipython-*.tgz $ipbackupdir

# Build source and binary distros
cd $ipdir
Expand All @@ -50,8 +52,8 @@ python2.4 ./setup.py bdist_rpm --binary-only --release=py24 --python=/usr/bin/py
python2.5 ./setup.py bdist_rpm --binary-only --release=py25 --python=/usr/bin/python2.5

# Build eggs
python2.4 ./eggsetup.py bdist_egg
python2.5 ./eggsetup.py bdist_egg
python2.4 ./setup_bdist_egg.py
python2.5 ./setup_bdist_egg.py

# Call the windows build separately, so that the extra Windows scripts don't
# get pulled into Unix builds (setup.py has code which checks for
Expand All @@ -72,7 +74,7 @@ echo "Uploading distribution files..."
scp * [email protected]:www/dist/

echo "Uploading backup files..."
cd ~/ipython/backup
cd $ipbackupdir
scp `ls -1tr | tail -1` [email protected]:www/backup/

echo "Updating webpage..."
Expand All @@ -86,8 +88,8 @@ cd $www

# Alert package maintainers
echo "Alerting package maintainers..."
maintainers='fperez@colorado.edu [email protected] [email protected] [email protected] [email protected] [email protected]'
#maintainers='fperez@colorado.edu'
#maintainers='fernando.perez@berkeley.edu [email protected] [email protected] [email protected] [email protected] [email protected]'
maintainers='fernando.perez@berkeley.edu'

for email in $maintainers
do
Expand Down
4 changes: 2 additions & 2 deletions tools/testrel
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ python2.4 ./setup.py bdist_rpm --binary-only --release=py24 --python=/usr/bin/py
python2.5 ./setup.py bdist_rpm --binary-only --release=py25 --python=/usr/bin/python2.5

# Build eggs
python2.4 ./eggsetup.py bdist_egg
python2.5 ./eggsetup.py bdist_egg
python2.4 ./setup_bdist_egg.py
python2.5 ./setup_bdist_egg.py

# Call the windows build separately, so that the extra Windows scripts don't
# get pulled into Unix builds (setup.py has code which checks for
Expand Down

0 comments on commit 86a7612

Please sign in to comment.