##// END OF EJS Templates
Fixing subtle bug in expanduser(expandvars(path)) on Windows....
Fixing subtle bug in expanduser(expandvars(path)) on Windows. On Windows, some paths can have the string $\ in them: \\server\users$\%username%. The "$" means it is a hidden share. Unfortunately, os.path.expandvars turns that into: \\server\users\%username% (it deletes the '$'). I have implemented a simple function (expand_path) that calls os.expanduser and os.expandvars in a way that preserves th '$' on Windows in this case.

File last commit:

r2146:f57d8b10 merge
r2324:811a55ae
Show More
make_tarball.py
23 lines | 552 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
Cleaned up release tools directory....
r2118 import os
import sys
import shutil
Ville M. Vainio
mkrel changes (copy stff from 'release' sh script)
r1197
Fernando Perez
Cleaned up release tools directory....
r2118 from toollib import *
ville
initialization (no svn history)
r988
Fernando Perez
Cleaned up release tools directory....
r2118 c('python update_revnum.py')
ville
initialization (no svn history)
r988
Brian Granger
Merging -r 1192 from lp:ipython.
r2146 execfile('../IPython/core/release.py') # defines version_base
Ville M. Vainio
make_tarball now creates the tarball from bzr with rev & branch info
r1068
Fernando Perez
Cleaned up release tools directory....
r2118 ver = version_info()
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':
Fernando Perez
Cleaned up release tools directory....
r2118 tarname = 'ipython-%s.bzr.r%s.tgz' % (version_base, ver['revno'])
Ville M. Vainio
make_tarball now creates the tarball from bzr with rev & branch info
r1068 else:
Fernando Perez
Cleaned up release tools directory....
r2118 tarname = 'ipython-%s.bzr.r%s.%s.tgz' % (version_base, ver['revno'],
Fernando Perez
Small updates to build tools (rpm building temporarily off)
r1527 ver['branch-nick'])
Ville M. Vainio
make_tarball now creates the tarball from bzr with rev & branch info
r1068
Fernando Perez
Cleaned up release tools directory....
r2118 c('bzr export ' + tarname)