From 01dfe124e41e14ec2e4ac9289a5f1168f378f1b1 2007-08-06 21:14:35 From: vivainio Date: 2007-08-06 21:14:35 Subject: [PATCH] beef up mkrel.py --- diff --git a/tools/mkrel.py b/tools/mkrel.py index 3293557..dde4e6e 100755 --- a/tools/mkrel.py +++ b/tools/mkrel.py @@ -1,6 +1,12 @@ +""" Create ipykit, source package and exe installer + +requires py2exe + +""" #!/bin/sh # IPython release script + import os import distutils.dir_util def c(cmd): @@ -8,9 +14,12 @@ def c(cmd): os.system(cmd) os.chdir('..') - distutils.dir_util.remove_tree('dist') +distutils.dir_util.remove_tree('ipykit') +c("python exesetup.py py2exe") +os.rename('dist','ipykit') + +c("zip -r ipykit.zip ipykit") c("python setup.py bdist_wininst --install-script=ipython_win_post_install.py") -c("python exesetup.py py2exe")