##// END OF EJS Templates
Merging -r 1191 from lp:ipython.
Merging -r 1191 from lp:ipython.

File last commit:

r1527:8271f193
r2145:628c45e1 merge
Show More
make_tarball.py
36 lines | 797 B | text/x-python | PythonLexer
Fernando Perez
Fixes to build/doc scripts.
r1206 #!/usr/bin/env python
"""Simple script to create a tarball with proper bzr version info.
"""
ville
initialization (no svn history)
r988
Fernando Perez
Fixes to build/doc scripts.
r1206 import os,sys,shutil
Ville M. Vainio
mkrel changes (copy stff from 'release' sh script)
r1197
Fernando Perez
Small updates to build tools (rpm building temporarily off)
r1527 basever = '0.9.0'
ville
initialization (no svn history)
r988
def oscmd(c):
print ">",c
s = os.system(c)
if s:
print "Error",s
sys.exit(s)
Ville M. Vainio
make_tarball now creates the tarball from bzr with rev & branch info
r1068 def verinfo():
out = os.popen('bzr version-info')
pairs = (l.split(':',1) for l in out)
d = dict(((k,v.strip()) for (k,v) in pairs))
return d
basename = 'ipython'
#tarname = '%s.r%s.tgz' % (basename, ver)
Ville M. Vainio
mkrel changes (copy stff from 'release' sh script)
r1197 oscmd('python update_revnum.py')
Ville M. Vainio
make_tarball now creates the tarball from bzr with rev & branch info
r1068
ver = verinfo()
ville
initialization (no svn history)
r988
Ville M. Vainio
make_tarball now creates the tarball from bzr with rev & branch info
r1068 if ver['branch-nick'] == 'ipython':
tarname = 'ipython-%s.bzr.r%s.tgz' % (basever, ver['revno'])
else:
Fernando Perez
Small updates to build tools (rpm building temporarily off)
r1527 tarname = 'ipython-%s.bzr.r%s.%s.tgz' % (basever, ver['revno'],
ver['branch-nick'])
Ville M. Vainio
make_tarball now creates the tarball from bzr with rev & branch info
r1068
oscmd('bzr export ' + tarname)