##// END OF EJS Templates
Make sure that if synchronization is with .pyc file the corresponding .py file is used for the synchronization.
Make sure that if synchronization is with .pyc file the corresponding .py file is used for the synchronization.

File last commit:

r1206:86a76129
r1330:8215c621
Show More
make_tarball.py
36 lines | 753 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
Ville M. Vainio
make_tarball now creates the tarball from bzr with rev & branch info
r1068 basever = '0.8.3'
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:
tarname = 'ipython-%s.bzr.r%s.%s.tgz' % (basever, ver['revno'], ver['branch-nick'])
oscmd('bzr export ' + tarname)
ville
initialization (no svn history)
r988