make_tarball.py
23 lines
| 547 B
| text/x-python
|
PythonLexer
/ tools / make_tarball.py
Fernando Perez
|
r1206 | #!/usr/bin/env python | ||
"""Simple script to create a tarball with proper bzr version info. | ||||
""" | ||||
ville
|
r988 | |||
Fernando Perez
|
r2118 | import os | ||
import sys | ||||
import shutil | ||||
Ville M. Vainio
|
r1197 | |||
Fernando Perez
|
r2118 | from toollib import * | ||
ville
|
r988 | |||
Fernando Perez
|
r2118 | c('python update_revnum.py') | ||
ville
|
r988 | |||
Fernando Perez
|
r2118 | execfile('../IPython/Release.py') # defines version_base | ||
Ville M. Vainio
|
r1068 | |||
Fernando Perez
|
r2118 | ver = version_info() | ||
ville
|
r988 | |||
Ville M. Vainio
|
r1068 | if ver['branch-nick'] == 'ipython': | ||
Fernando Perez
|
r2118 | tarname = 'ipython-%s.bzr.r%s.tgz' % (version_base, ver['revno']) | ||
Ville M. Vainio
|
r1068 | else: | ||
Fernando Perez
|
r2118 | tarname = 'ipython-%s.bzr.r%s.%s.tgz' % (version_base, ver['revno'], | ||
Fernando Perez
|
r1527 | ver['branch-nick']) | ||
Ville M. Vainio
|
r1068 | |||
Fernando Perez
|
r2118 | c('bzr export ' + tarname) | ||