##// END OF EJS Templates
parse cl_args agnostic of leading '-'...
parse cl_args agnostic of leading '-' leading '-' is stripped from all command-line args for parsing. This means that `ipython --gui=qt` will work, as will `ipython gui=qt` non-leading '-' is still allowed, since rc1 unfortunately made it into EPD this week. help output now includes '--' format, to discourage use of short form. argv passed to scripts specified on the command-line is also fixed Also, parsing will stop at the first unrecognized arg, so `ipython foo.py -i` is *not* the same as `ipython -i foo.py` (foo will get -i, not IPython). This makes passing args to scripts match what should be expected. config tests updated accordingly.

File last commit:

r3197:4050155b
r4189:c3571a2f
Show More
build_release
35 lines | 1023 B | text/plain | TextLexer
#!/usr/bin/env python
"""IPython release build script.
"""
from toollib import *
# Get main ipython dir, this will raise if it doesn't pass some checks
ipdir = get_ipdir()
cd(ipdir)
# Load release info
execfile(pjoin('IPython','core','release.py'))
# Check that everything compiles
compile_tree()
# Cleanup
for d in ['build','dist',pjoin('docs','build'),pjoin('docs','dist'),
pjoin('docs','source','api','generated')]:
if os.path.isdir(d):
remove_tree(d)
# Build source and binary distros
sh('./setup.py sdist --formats=gztar,zip')
# Build eggs
sh('python2.6 ./setupegg.py bdist_egg')
# Call the windows build separately, so that the extra Windows scripts don't
# get pulled into Unix builds (setup.py has code which checks for
# bdist_wininst)
sh("python setup.py bdist_wininst --install-script=ipython_win_post_install.py")
# Change name so retarded Vista runs the installer correctly
sh("rename 's/linux-i686/win32-setup/' dist/*.exe")
sh("rename 's/linux-x86_64/win32-setup/' dist/*.exe")