diff options
Diffstat (limited to 'lib-python/2.7/distutils')
-rw-r--r-- | lib-python/2.7/distutils/cmd.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib-python/2.7/distutils/cmd.py b/lib-python/2.7/distutils/cmd.py index 9ad5657e40..4440820dd2 100644 --- a/lib-python/2.7/distutils/cmd.py +++ b/lib-python/2.7/distutils/cmd.py @@ -298,8 +298,11 @@ class Command: src_cmd_obj.ensure_finalized() for (src_option, dst_option) in option_pairs: if getattr(self, dst_option) is None: - setattr(self, dst_option, - getattr(src_cmd_obj, src_option)) + try: + setattr(self, dst_option, + getattr(src_cmd_obj, src_option)) + except AttributeError: + pass def get_finalized_command(self, command, create=1): |