summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/bdist_wininst.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-01-12 11:27:42 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-01-12 11:27:42 (GMT)
commit9668b933e306f92aaab5a19a4316124b00978c48 (patch)
tree204c012e73ec778bd2ec46cf891354312f3650a9 /Lib/distutils/command/bdist_wininst.py
parentcdc445122208cb90a59a468a7396b227e223c43a (diff)
downloadcpython-9668b933e306f92aaab5a19a4316124b00978c48.zip
cpython-9668b933e306f92aaab5a19a4316124b00978c48.tar.gz
cpython-9668b933e306f92aaab5a19a4316124b00978c48.tar.bz2
Patch #414775: Add --skip-build option to bdist command.
Diffstat (limited to 'Lib/distutils/command/bdist_wininst.py')
-rw-r--r--Lib/distutils/command/bdist_wininst.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/distutils/command/bdist_wininst.py b/Lib/distutils/command/bdist_wininst.py
index 7c34cff..4a16eec 100644
--- a/Lib/distutils/command/bdist_wininst.py
+++ b/Lib/distutils/command/bdist_wininst.py
@@ -36,6 +36,8 @@ class bdist_wininst (Command):
"bitmap to use for the installer instead of python-powered logo"),
('title=', 't',
"title to display on the installer background instead of default"),
+ ('skip-build', None,
+ "skip rebuilding everything (for testing/debugging)"),
]
boolean_options = ['keep-temp']
@@ -49,6 +51,7 @@ class bdist_wininst (Command):
self.dist_dir = None
self.bitmap = None
self.title = None
+ self.skip_build = 0
# initialize_options()
@@ -79,10 +82,12 @@ class bdist_wininst (Command):
("distribution contains extensions and/or C libraries; "
"must be compiled on a Windows 32 platform")
- self.run_command('build')
+ if not self.skip_build:
+ self.run_command('build')
install = self.reinitialize_command('install')
install.root = self.bdist_dir
+ install.skip_build = self.skip_build
install_lib = self.reinitialize_command('install_lib')
# we do not want to include pyc or pyo files