diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2002-01-12 11:27:42 +0000 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2002-01-12 11:27:42 +0000 |
| commit | 533106ffec72f15ce012bff3bae5f24df618c8d6 (patch) | |
| tree | 8eae4a0940733d88ffbe7611dcf1449b1a00c50b /command/bdist_dumb.py | |
| parent | b8b4137be241dd8aeb636a704150fea716b63a30 (diff) | |
| download | python-setuptools-git-533106ffec72f15ce012bff3bae5f24df618c8d6.tar.gz | |
Patch #414775: Add --skip-build option to bdist command.
Diffstat (limited to 'command/bdist_dumb.py')
| -rw-r--r-- | command/bdist_dumb.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/command/bdist_dumb.py b/command/bdist_dumb.py index 8dfc3271..dbe862bb 100644 --- a/command/bdist_dumb.py +++ b/command/bdist_dumb.py @@ -30,9 +30,11 @@ class bdist_dumb (Command): "creating the distribution archive"), ('dist-dir=', 'd', "directory to put final built distributions in"), + ('skip-build', None, + "skip rebuilding everything (for testing/debugging)"), ] - boolean_options = ['keep-temp'] + boolean_options = ['keep-temp', 'skip-build'] default_format = { 'posix': 'gztar', 'nt': 'zip', } @@ -44,6 +46,7 @@ class bdist_dumb (Command): self.format = None self.keep_temp = 0 self.dist_dir = None + self.skip_build = 0 # initialize_options() @@ -71,10 +74,12 @@ class bdist_dumb (Command): def run (self): - self.run_command('build') + if not self.skip_build: + self.run_command('build') install = self.reinitialize_command('install', reinit_subcommands=1) install.root = self.bdist_dir + install.skip_build = self.skip_build self.announce("installing to %s" % self.bdist_dir) self.run_command('install') |
