mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
83ab3f319b
commit
b9fe54cccc
5 changed files with 28 additions and 34 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue