From 1497b61cb031b3cae83b2e9cfff7ed69f6a7af7c Mon Sep 17 00:00:00 2001 From: Greg Ward Date: Wed, 22 Mar 2000 00:31:37 +0000 Subject: Dropped the evil and misguided 'set_peer_option()' method -- it's no longer needed, and can't possibly work anyways. --- Lib/distutils/core.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py index 2f3a36d..df36467 100644 --- a/Lib/distutils/core.py +++ b/Lib/distutils/core.py @@ -851,26 +851,6 @@ class Command: raise DistutilsOptionError, "unknown option %s" % name - def set_peer_option (self, command, option, value): - """Attempt to simulate a command-line override of some option - value in another command. Finds the command object for - 'command', sets its 'option' to 'value', and unconditionally - calls 'finalize_options()' on it: this means that some command - objects may have 'finalize_options()' invoked more than once. - Even so, this is not entirely reliable: the other command may - already be initialized to its satisfaction, in which case the - second 'finalize_options()' invocation will have little or no - effect.""" - - # XXX this won't work -- must call finalize_option to work, but - # calling finalize_option is wrong (it's only supposed to be called - # once). Where is this needed?!??! - - cmd_obj = self.distribution.find_command_obj (command) - cmd_obj.set_option (option, value) - cmd_obj.finalize_options () - - def find_peer (self, command, create=1): """Wrapper around Distribution's 'find_command_obj()' method: find (create if necessary and 'create' is true) the command -- cgit v0.12