##// END OF EJS Templates
Put windows build cmds in a reusable location so we can upload .exes to PyPI.
Put windows build cmds in a reusable location so we can upload .exes to PyPI.

File last commit:

r6604:31b2debf
r6604:31b2debf
Show More
build_release
39 lines | 952 B | text/plain | TextLexer
#!/usr/bin/env python
"""IPython release build script.
"""
import os
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('python ./setupegg.py bdist_egg')
# Run windows builds
map(sh, win_builds)
# Change name so retarded Vista runs the installer correctly
sh("rename 's/linux-i686/win32/' dist/*.exe")
sh("rename 's/linux-x86_64/win32/' dist/*.exe")
sh("rename 's/amd64/amd64-setup/' dist/*.exe")
# exe files aren't really executable under *nix.
sh("chmod -x dist/*.exe")