From 7c8faf80c368c2f41c27eefd529356ae5f342b46 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 14 Mar 2013 01:15:15 +0000 Subject: [PATCH] add bdist_wininst command git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- build.py | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/build.py b/build.py index 3e30c852..6a089b97 100755 --- a/build.py +++ b/build.py @@ -1163,15 +1163,31 @@ def install_py_cmd(options, args): cmd = "%s setup.py install --skip-build %s %s %s" % ( PYTHON, DESTDIR, VERBOSE, options.extra_setup) runcmd(cmd) - + + +def _doSimpleSetupCmd(options, args, setupCmd): + cmdTimer = CommandTimer(setupCmd) + VERBOSE = '--verbose' if options.verbose else '' + cmd = "%s setup.py %s --skip-build %s %s" % (PYTHON, setupCmd, VERBOSE, options.extra_setup) + runcmd(cmd) + def bdist_egg_cmd(options, args): - cmdTimer = CommandTimer('bdist_egg') - VERBOSE = '--verbose' if options.verbose else '' - cmd = "%s setup.py bdist_egg --skip-build %s %s" % (PYTHON, VERBOSE, options.extra_setup) - runcmd(cmd) + _doSimpleSetupCmd(options, args, 'bdist_egg') + +def bdist_wininst_cmd(options, args): + _doSimpleSetupCmd(options, args, 'bdist_wininst') + +# bdist_msi requires the version number to be only 3 components, but we're +# using 4. TODO: Fix this. +#def bdist_msi_cmd(options, args): +# _doSimpleSetupCmd(options, args, 'bdist_msi') + + + + def clean_wx_cmd(options, args): cmdTimer = CommandTimer('clean_wx') if isWindows: