Make bdist_* commands respect --skip-build passed to bdist (#10946).

There was already a test for this, but it was complicated and had a
subtle bug (custom command objects need to be put in dist.command_obj so
that other command objects may see them) that rendered it moot.
This commit is contained in:
Éric Araujo 2011-08-30 01:42:50 +02:00
parent 83ab3f319b
commit b9fe54cccc
5 changed files with 28 additions and 34 deletions

View file

@ -55,7 +55,7 @@ class bdist_dumb(Command):
self.format = None
self.keep_temp = False
self.dist_dir = None
self.skip_build = False
self.skip_build = None
self.relative = False
self.owner = None
self.group = None
@ -73,7 +73,8 @@ class bdist_dumb(Command):
"don't know how to create dumb built distributions "
"on platform %s" % os.name)
self.set_undefined_options('bdist', 'dist_dir', 'plat_name')
self.set_undefined_options('bdist',
'dist_dir', 'plat_name', 'skip_build')
def run(self):
if not self.skip_build: