##// END OF EJS Templates
Reenabled -wthread/-q4thread/-gthread and added warning for -pylab....
Reenabled -wthread/-q4thread/-gthread and added warning for -pylab. -wthread/-q4thread/-gthread are enabled at the command line and use the new inputhook stuff. The -pylab command line mode doesn't work, but there is at least a nice warning showing the user what they can do in the meantime.

File last commit:

r2146:f57d8b10 merge
r2264:2b52c2c9
Show More
update_revnum.py
32 lines | 711 B | text/x-python | PythonLexer
ville
initialization (no svn history)
r988 #!/usr/bin/env python
Brian Granger
Merging -r 1192 from lp:ipython.
r2146 """Change the revision number in release.py
Fernando Perez
Cleaned up release tools directory....
r2118
Brian Granger
Merging -r 1192 from lp:ipython.
r2146 This edits in-place release.py to update the revision number from bzr info.
Fernando Perez
Cleaned up release tools directory....
r2118
Usage:
./update_revnum.py"""
ville
initialization (no svn history)
r988
import os
Fernando Perez
Cleaned up release tools directory....
r2118 import pprint
import re
ville
initialization (no svn history)
r988
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 if __name__ == '__main__':
ver = version_info()
Ville M. Vainio
version string in Release contains bzr branch if not 'ipython'
r1072
Fernando Perez
Cleaned up release tools directory....
r2118 pprint.pprint(ver)
ville
initialization (no svn history)
r988
Brian Granger
Merging -r 1192 from lp:ipython.
r2146 rfile = open('../IPython/core/release.py','rb').read()
Fernando Perez
Cleaned up release tools directory....
r2118 newcont = re.sub(r'revision\s*=.*',
"revision = '%s'" % ver['revno'],
rfile)
Ville M. Vainio
version string in Release contains bzr branch if not 'ipython'
r1072
Fernando Perez
Cleaned up release tools directory....
r2118 newcont = re.sub(r'^branch\s*=[^=].*',
"branch = '%s'" % ver['branch-nick'],
newcont)
Ville M. Vainio
version string in Release contains bzr branch if not 'ipython'
r1072
Brian Granger
Merging -r 1192 from lp:ipython.
r2146 f = open('../IPython/core/release.py','wb')
Fernando Perez
Cleaned up release tools directory....
r2118 f.write(newcont)
f.close()